MD:=MAX(M5,MAX(M10,MAX(M20,MAX(M30,M60)))); MN:=MIN(M5,MIN(M10,MIN(M20,MIN(M30,M60)))); MJ:=(MD-MN)/C =0.02; DIF:=EMA(CLOSE,12)*10-EMA(CLOSE,26)*10; DEA:=EMA(DIF,9)*10; XG:MJ AND CROSS(DEA,DIF);