N:=4;
N1:=10;
N2:=34;
VAR1:=EMA(EMA(EMA(CLOSE,N),N),3);
AA:=VAR1-REF(VAR1,1)+VAR1;
X:=EMA(C,3),COLOR0000FF,LINETHICK2;
AX:EMA(C,20),COLORFF00FF,LINETHICK2;
DRAWTEXT(CROSS(REF(VAR1,1),VAR1) AND X AX,HHV(H,5), 空
DRAWTEXT(CROSS(VAR1,REF(VAR1,1)) AND X AX,LLV(L,5), 多多 ),COLOR0000FF;
DRAWTEXT(CROSS(VAR1,REF(VAR1,1)) AND X AX,LLV(L,5), 多
DRAWTEXT(CROSS(REF(VAR1,1),VAR1) AND X AX,HHV(H,5), 空空 ),COLOR00FF00;
STICKLINE(X AX AND C O,O,C,3,1),COLOR0000FF;
STICKLINE(X AX AND C O,O,C,3,0),COLOR0000FF;
STICKLINE(X AX AND C O,H,C,0,0),COLOR0000FF;
STICKLINE(X AX AND C O,L,O,0,0),COLOR0000FF;
STICKLINE(X AX AND C =O,L,H,0,0),COLOR0000FF;
STICKLINE(X AX AND C O,O,C,3,1),COLOR00FF00;
STICKLINE(X AX AND C O,O,C,3,0),COLOR00FF00;
STICKLINE(X AX AND C O,H,C,0,0),COLOR00FF00;
STICKLINE(X AX AND C O,L,O,0,0),COLOR00FF00;
STICKLINE(X AX AND C =O,L,H,0,0),COLOR00FF00;
IF(X AX,AX,NULL),COLOR00FF00,LINETHICK2;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);
VB1:=FILTER(A1,10);
C1:=BACKSET(VB1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
VB2:=FILTER(A2,10);
C2:=BACKSET(VB2,10+1);
LD:=FILTER(C2,10);
AAD:=REF(C,BARSLAST(HD));
BA:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD) BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD) BARSLAST(LD) AND NOT(LD);
A3:=LLV(LOW,1);
A4:=LLV(LOW,5);
A5:=LLV(LOW,8);
A6:=HHV(H,21);
A7:=LLV(LOW,21),COLORRED;
A8:=(A6+A7)/2;
IF(T1,AAD,AAD),COLORGREEN,POINTDOT;
STICKLINE(T1,AAD,AAD,2,0),COLOR80FF80;
IF(T2,BA,BA),COLORRED,POINTDOT;
STICKLINE(T2 ,BA,BA,2,0),COLOR0000FF;