MA1:=EMA(C,12);MA2:=EMA(C,50);MA3:=EMA(C,34);MA4:=EMA(C,7);MA5:=EMA(C,20);MA6:=EMA(C,10);DIFF:=EMA(CLOSE,30)-EMA(CLOSE,120);DEA:=EMA(DIFF,9);M1:MA(CLOSE,5),colorred,LINETHICK;M2:EMA(CLOSE,12),colorred,LINETHICK;M3:EMA(CLOSE,50),colorred,LINETHICK;X:=BARSLAST(REF(OSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));IF(M3
[=MA1 AND C>=MA2 AND DIFF>=DEA ,H ,L-0.01 ,0 ,0 ),colorred;STICKLINE(C>=MA1 AND C>=MA2 AND DIFF>=DEA ,O ,C ,2.5 ,0 ),colorred;STICKLINE(C>=MA1 AND C>=MA2 AND DIFF>=DEA ,O ,C ,2
]