t1:=c(c,20)*1.1 and c>o;a1:=(h-max(c,o));a2:=h-l;t2:=a1/ref(c,1)*100>=2 and a1*2>=a2;t3:=v>ref(v,1);xg:t1 and t2 and t3;参考资料:http://tieba.baidu.com/f?kw=%b9%c9%c6%b1%b9%ab%ca%bd%d7%a8%bc%d2 20210311
选股周期自行选用。(cross(kd.k,kd.d) or (ref(kd.k,2)>ref(kd.k,1) and kd.k>ref(kd.k,1))) and macd.macd>ref(macd.macd,1) and range(cci.cci,-100,100) and cci.cci>ref(cci.cci,1);
按你条件设定编写如下:e6:expma(c,6);e36:expma(c,36);涨幅:(c-ref(c,1))/ref(c,1)*100,nodraw;上影线:if(c>o,(h-c)/(h-l)*100,(h-o)/(h-l)*100),nodraw;{表示上影线占整根k线的比例}候选:e6<e36 and e6>ref(e6,1) and 涨幅>3 and o<...
第一个公式:m20:=ema(c,20);m60:=ema(c,60);t1:=between((c/ref(c,1)-1)*100,2,-1.5);xg:m20<c and c<m60 and t1; 第二个公式:m20:=ema(c,20);m60:=ema(c,60);t1:=between((c/ref(c,1)-1)*100,2,-1.5);xg:m60<m20 and...