RC:=DYNAINFO(3);S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6);STICKLINE(DK>0,RC,RC+DK,0,1),COLORRED;STICKLINE(DK<0 RC,RC+DK,0,1),COLORFFFF00;DIR1:=A(CLOSE-REF(CLOSE,5));VIR1: SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1: CQ1:=CS1*CS1;AMA1:EMA(DMA(CLOSE,CQ1),2) COLORYELLOW,LINETHICK2;VAR2:=((CLOSE> REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR3:=((REF(VAR2,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR4:=((REF(VAR3,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE