公式如下:选择的范围太大,我给你加了点限制,让你有更多的选择空间。ma30:=ma(c,30);diff:=ema(close,12)-ema(close,26); dea:=ema(diff,9); macd:=2*(diff-dea); fh1:=ref(macd,1)<ref(macd,2) and ref(macd,2)<ref(macd,3) and ref(macd,3)&...
n:=20;d:=5;boll:=ma(close,n);ub:=boll+2*std(close,n);lb:=boll-2*std(close,n);xg:count(range(c,lb,boll)=1,d) and lb>ref(lb,1) and ref(lb,1)<ref(lb,2);{d:为收盘价在中轨和下轨间运行天数(我设为5天,自己可改),下轨第一天转头向上时进行选股...
均价:=(open+high+low+close*2)/5;突破:=均价+high-low;阻力:=均价*2-low;支撑:=均价*2-high;下降:=均价-high+low;心理:=(均价+突破+阻力+支撑+下降)/5;趋势:=expma(close,12);xg:ref(心理,1)<ref(趋势,1) and 心理>ref(心理,1) and 心理<趋势;测试通过,希望能够...
t:=((ref(c,1)-ref(c,2))/ref(c,2)*100)>7;t1:=o>ref(h,1)and o=h and c<o and c>ref(c,1);t2:=c/l>1.03 and(min(c,o)-l)>(h-min(c,o));xgt:t and t1 and t2;已测试 600822差点:
{ok.抄底选股通过测试}var1:=(close-llv(low,36))/(hhv(high,36)-llv(low,36))*100;var2:=sma(var1,3,1);var3:=sma(var2,3,1);var4:=sma(var3,3,1);v**:=cross(var3,var4) and var3<25;v** and count(v**,10)=1;