DIFF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIFF,9);
macd:(DIFF-DEA)*2,COLORSTICK,LINETHICK2;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
SCORE1:=IF(crOSS(DIFF,DEA),1,0);
SCORE2:=IF(CROSS(MA1,MA2),1,0);
SCORE:=SCORE1+SCORE2;
{DRAWNUMBER(1,DIFF,SCORE);}
SUMSCORE:=SUM(SCORE,3);
DRAWNUMBER(1,DEA,SUMSCORE);