DIFF:=EMA(CLOSE,3)-EMA(CLOSE,7);DEA:=EMA(DIFF,3);2:=2*(DIFF-DEA);DU0:=OSS(DIFF,0);UD0:=CROSS(0,DIFF);TDU0:=BARSLAST(DU0);TUD0:=BARSLAST(UD0);DU3:=REF(DU0,1);UD3:=REF(UD0,1);TDU3:=BARSLAST(DU3);TUD3:=BARSLAST(UD3);UDGLINE:=IF(TDU3
UDGLINE AND TDU0=REF(UDGLINE,1) AND CLOSE=0,0,MACD2,2,1),COLOR0000FF;STICKLINE(MACD2>=0