V0:=EMA(C,5); V1:=EMA(C,10); V3:=EMA(C,30); V4:=EMA(C,60); M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975; M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985; M4:=M1 AND M3 AND CROSS(V0,V1); M5:=M1 AND M3 AND CROSS(V0,V3); M4 OR M5;