Var1:=AMOUNT/VOL;
A:=SMA(Var1,5,1)-SMA(Var1,55,1);
B:=SMA((A-SMA(A,5,1)),5,1);
STICKLINE(C,H,L,0,1),colorgreen;
STICKLINE(C>=O,O,C,8,1),colorgreen;
STICKLINE(C<O,O,C,8,0),colorgreen;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),H,L,0,1),colorred;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C>=O,O,C,8,1),colorred;
STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C<O,O,C,8,0),colorred;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),H,L,0,1),colorwhite;//白色1
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C>=O,O,C,8,1),colorwhite;
STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1) AND C<O,O,C,8,0),colorwhite;
STICKLINE(A<REF(A,3) AND B<REF(B,3),H,L,0,1),colorgreen;
STICKLINE(A<REF(A,3) AND B<REF(B,3) AND C>=O,O,C,8,1),colorgreen;
STICKLINE(A<REF(A,3) AND B<REF(B,3) AND C<O,O,C,8,0),colorgreen;
STICKLINE(A>REF(A,1) AND B<REF(B,1),H,L,0,1),color99ccff;//白色2 也可以自己改为白色,我只是为了区别一下三种不同的白色,用了一个不同的颜色
STICKLINE(A>REF(A,1) AND B<REF(B,1) AND C>=O,O,C,8,1),color99ccff;
STICKLINE(A>REF(A,1) AND B<REF(B,1) AND C<O,O,C,8,0),color99ccff;
STICKLINE((A<REF(A,1) AND B>REF(B,1)),H,L,0,1),colordddddd;//白色3
STICKLINE((A<REF(A,1) AND B>REF(B,1)) AND C>=O,O,C,8,1),colordddddd;
STICKLINE((A<REF(A,1) AND B>REF(B,1)) AND C<O,O,C,8,0),colorddddd;