rsv:=(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;dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=2*(dif-dea);xg:cross(k,d) and macd>ref(macd,1);
dif:=ema(close,short)-ema(close,long);dea:=ema(dif,mid);macd:=(dif-dea)*2;ref(macd,1)<ref(macd,2) and macd>ref(macd,1) and macd>0;参数:long:26 short:12 mid:9别忘了加分哦。