a7:=c-ref(c,1);a8:=100*ema(ema(a7,6),6)/ema(ema(abs(a7),6),6);买:=llv(a8,2)=llv(a8,7) and count(a8<0,2) and cross(a8,ma(a8,2));filter(买=1,5) and dyna**(17)>0;公式已测试通过!希望能够帮助你!
按你条件设定编写如下: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<...
gjtj1:=100*(c-llv(l,5))/(hhv(c,5)-llv(l,5));gjtj4:=100*(c-llv(l,30))/(hhv(c,30)-llv(l,30));xg:=barslast(cross(gjtj4,gjtj1))<5 and gjtj1>gjtj4;count(xg,3)=1 and xg and c>ma(c,20);