SHORT:=26;LONG:=12;M:=9;
DIF:=((EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)))*-1;
DEA:=EMA(DIF,M);
macd:=2*(DIF-DEA);
A4:=BArslAst(REF(crOSS(DIF,DEA),1));
B1:=REF(C,A4+1)>C AND REF(DIF,A4+1)
SHORT:=26;LONG:=12;M:=9;
DIF:=((EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)))*-1;
DEA:=EMA(DIF,M);
macd:=2*(DIF-DEA);
A4:=BArslAst(REF(crOSS(DIF,DEA),1));
B1:=REF(C,A4+1)>C AND REF(DIF,A4+1)