N:=10;
高:=H;
开:=O;
低:=L;
收:=C;
量:=V;
stICKLINE(收 开,开,收,3,1),COLORRED;
STICKLINE(收 开,高,收,0,0),COLORRED;
STICKLINE(收 开,开,低,0,0),COLORRED;
STICKLINE(收 开,开,收,3,1),COLORAA991E;
STICKLINE(收 开,高,开,0,0),COLORAA991E;
STICKLINE(收 开,收,低,0,0),COLORAA991E;
STICKLINE(收=开,开,收,3,1),COLORLIGRAY;
STICKLINE(收=开,高,低,0,0),COLORLIGRAY;
TY1:=高;
A1:=REF(TY1,N)=HHV(TY1,2*N+1),NODRAW;
B1:=FILTER(A1,N),NODRAW;
C1:=BacKSET(B1,N+1),NODRAW;
HD1:=FILTER(C1,N),NODRAW;
前高:REF(H,BArslAST(HD1)),COLORYELLOW,POINTDOT;
TY2:=低;
A2:=REF(TY2,N)=LLV(TY2,2*N+1),NODRAW;
B2:=FILTER(A2,N),NODRAW;
C2:=BACKSET(B2,N+1),NODRAW;
HD2:=FILTER(C2,N),NODRAW;
前低:REF(L,BARSLAST(HD2)),COLORGREEN,POINTDOT;
前低起点:=TFILTER(BACKSET(L 前低,BARSLAST(C2)+2),L =前低,1);
初阴胜阳:收 =开 AND REF(收,1) REF(开,1) AND 量 REF(量,1),NODRAW;
ZQ1:=BARSLAST(初阴胜阳);
FZ1:=BACKSET(前低,ZQ1);
初阳胜阴:收 开 AND REF(收,1) REF(开,1) AND 量 REF(量,1),NODRAW;
STICKLINE(初阴胜阳,开,收,3,0),COLOR00FF7F;
STICKLINE(初阴胜阳,高,低,0,0),COLOR00FF7F;
ZQ2:=BARSLAST(初阳胜阴);
FZ2:=BACKSET(前低,ZQ2);
STICKLINE(初阳胜阴,开,收,3,0),COLORLIRED;
STICKLINE(初阳胜阴,低,高,0,0),COLORLIRED;
连红放量:=收 开 AND REF(收,1) REF(开,1) AND REF(收,2) REF(开,2) AND REF(收,3) REF(开,3) AND HHV(量,3) REF(量,4);
STICKLINE(连红放量,开,收,3,0),COLORRED;
STICKLINE(连红放量,低,高,0,0),COLORRED;
DRAWLINE(前低起点,低,低 前低 AND (初阴胜阳 OR 初阳胜阴 OR 连红放量),低,1),COLORWHITE;
DRAWLINE(前低起点,低,低 前低,低,1),COLORWHITE,DOTLINE;