龙王: =sma(close,2,1);买线:=ema(c,2);卖线:=ema(slope(c,24)*20+c,42); t1:=cross(买线,卖线*1.008) and 龙王>ref(龙王,1)*1.017;a :=ma(close,26);up:=a + 2*std(close,26);lower:=a - 2*std(close,26);w1:=c=hhv(c,20);w2:=barslast(w1);w3:=if(w2>0,ref(c,w2),ref(c,w2));w4:=cross(c,ref(w3,1));t2:=w4 and count(w4,5)=1;xg:t1 and t2;参考资料: 20210311
{通达信已通过测试}{选股}var1:=(2*close+high+low)/4;var2:=llv(low,34);var3:=hhv(high,34);xx:=ema((var1-var2)/(var3-var2)*100,13);yy:=ema(0.667*ref(xx,1)+0.333*xx,2);选股:cross(xx,yy) and xx<20;-----------------...
第一个公式源码:**空间:=if(winner(close),winner(close)*100,20);**空间<-70;------------------------------------------------------第二个公式源码:ac:=last(c>ref(c,1),4,1) and c<ref(c,1);{价格条件}bv:=last(vol>ref(v...
tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),7);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),7);dmm:=sum(if(ld>0 and ld>hd,ld,0),7);d...