AA:=DMA((H+L+C*2)/4,0.9);
BB:=REF(EMA(AA,3),1);
T0:=(C-BB)*100;
M1:EMA(EMA(EMA(T0,2),2),2),LINETHICK2,COLORGREEN;
IF(M1>=REF(M1,1),M1,DRAWNULL),LINETHICK2,COLORRED;
AA:=DMA((H+L+C*2)/4,0.9);
BB:=REF(EMA(AA,3),1);
T0:=(C-BB)*100;
M1:EMA(EMA(EMA(T0,2),2),2),LINETHICK2,COLORGREEN;
IF(M1>=REF(M1,1),M1,DRAWNULL),LINETHICK2,COLORRED;