n:=7;n1:=2;n2:=8;下轨:=(n-llvbars(h,n))/n*100;lc:=ref(close,1);rsi1:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*100;rsi2:=sma(max(close-lc,0),n2,1)/sma(abs(close-lc),n2,1)*100;l<下轨 and c>下轨...
ema10:=ema(c,10);ema60:=ema(c,60);longcross(ema10,ema60,1)=1;注释:最后用的是正好当日金叉;如果加macd的话,建议先导入macd的源码,然后条件语句可改为 longcross(ema10,ema60,1)=1 and cross(macd,0)=1;