dif:ema(c,12)-ema(c,26);dea:ema(dif,9);macd:(dif-dea)*2,nodraw;zero:=0;{macd柱线变色标识}stickline(macd>0 and macd>=ref(macd,1),0,macd,3,0),colorred;stickline(macd>0 and macd<ref(macd,1),0,macd,...
公式1rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;{以上为构成kdj指标的基本语句}k<10 and d<20 and j<10;{本句是你公式1的要求}公式2rsv:=(close-llv(low,9))/(hhv(high,9)-ll...
根据题意,选股公式如下:dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg1:macd>0 and ref(macd,1)<0 and ref(macd,2)<0 and ref(macd,3)<0 and ref(macd,4)>0;