MA1:=MA(CLOSE,M1);
MA2:=MA(CLOSE,M2);
CON1:=REF(C,5)> REF(C,6) AND REF(C,4)> REF(C,5) AND REF(C,3)> REF(C,4) AND REF(C,2)REF(C,1)
AND C> MA1;
CON2:=REF(C,5)> MA1 AND REF(C,4)> MA1 AND REF(C,3)> MA1 AND REF(C,2)> MA1 AND REF(C,1)> MA1;
CON3:=REF(C,2)
CON4:=REF(C,5)> REF(O,5) AND REF(C,4)> REF(O,4) AND REF(C,3)> REF(O,3);
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
CON1 AND MA1> MA2 AND DIF>DEA AND CON2 AND CON3 AND CON4;