var1:=ma((c+h+o+l)/4,3); 红线:=xma(var1,34)*(1-100/1000);a1:=c<红线 and 红线>ref(红线,4);牛:=ma(hhv((h+l+c)/3,350),60);金牛出现:=cross(c,牛) and c>ref(hhv(h,3),1) and (c-ref(c,1))/ref(c,1)>0.07;xg:a1 or 金牛出现;这样试试。不过,红线公式带有未来,不宜选股。我以前用过这公式,但过后信号漂移了。 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);
amo:=amount;maamo1:=ma(amo,10);maamo2:=ma(amo,20);maamo3:=ma(amo,30); aa:=ma(c,5)>ma(c,10) and ma(c,10)>ma(c,30) and ma(c,30)>ma(c,60) and ma(c,60)>ma(c,120);cross(maamo1,maamo2) and aa a...
a1:=hhv(c,1800)>llv(c,1800)*1.6 and llv(c,1800)*2<hhv(c,1800) and count(c/ref(c,1)>0.098,100)>=1 and barscount(close)>600 ;a2:= (c-ma(c,200))/ma(c,200)<0.2 { 相对于200天线正乖离小于20%...