A1:=(L*(macd.MacD<0));
A2:=BArslAST(MACD.MACD>=0);
A3:=IF(MA(A1,A2)=DRAWNULL,0,MA(A1,A2));
REF(A3,BARSLAST(MACD.MACD<0));
DRAWKLINE(H,O,L,C);
A1B:=(H*(MACD.MACD>0));
A2B:=BARSLAST(MACD.MACD<0);
A3B:=IF(MA(A1B,A2B)=DRAWNULL,0,MA(A1B,A2B));
REF(A3B,BARSLAST(MACD.MACD>=0));