C1:=REVERSE(C);
DRAWKLINE(-LOW, -OPEN, -HIGH, -CLOSE);
MID : ma(C1,26);
UPPER: MID + 2*STD(C1,26);
LOWER: MID - 2*STD(C1,26);
MA15:MA(C1,15);
IF(MA15>REF(MA15,1),MA15,DRAWNULL),LINETHICK3,COLORLIMAGENTA;
AY:MA(C1,4);
A3:=REF(AY,10)=HHV(AY,2*10+1); B3:=FILTER(A3,10);
C3:=BacKSET(B3,10+1); AD:=FILTER(C3,10);
A4:=REF(AY,10)=LLV(AY,2*10+1); B4:=FILTER(A4,10);
C4:=BACKSET(B4,10+1); CD:=FILTER(C4,10);
E:=REF(AY,BArslAST(AD)); F:=REF(AY,BARSLAST(CD));
T3:=BARSLAST(AD)<BARSLAST(CD) AND NOT(AD) ;
T4:=BARSLAST(AD)>BARSLAST(CD) AND NOT(CD);
IF(T3,E,E),COLORFF00FF,POINTDOT;
STICKLINE(T3,E,E,10,0),COLORFF00FF;