A:=EMA(CLOSE,60);
B:EMA(CLOSE,900);
HG:=A+2*STD(CLOSE,40);
HG2:EMA(HG,2);
HG20:EMA(HG,20);
LG:=A-2*STD(CLOSE,40);
W1:=C-HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2>0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
STICKLINE((HG20>B),HG20,B,1,0),COLORRED;