diff:=ema(close,12)-ema(close,26); dea:=ema(diff,9);macd:=2*(diff-dea);
零轴:0, colorFFFFFF, line;
stickline(macd>=ref(macd,1),0,macd,6,0),colormagenta;
stickline(macd<ref(macd,1),0,macd,6,0),colorgreen;
PARTLINE(diff>ref(diff,1),diff),colormagenta,linethick1;
PARTLINE(diff<=ref(diff,1),diff),colorcyan,linethick1;
PARTLINE(dea>ref(dea,1),dea),colormagenta,linethick2;
PARTLINE(dea<=ref(dea,1),dea),colorcyan,linethick2; |
