m5:=ma(close,5)>ref(ma(close,5),1);m10:=ma(close,10)>ref(ma(close,10),1);m30:=ma(close,30)>ref(ma(close,30),1);m60:=ma(close,60)>ref(ma(close,60),1);m120:=ma(close,120)>ref(ma(close,120),1);m0:=m5 and m10 and m60 and m120 and cross(ma(close,60),ma(close,120));{5、10、30、60、120... 20210311
【选股条件】主力持仓:=ema(100*(close-llv(low,34))/(hhv(high,34)-llv(low,34)),3)选股:主力持仓/ref(主力持仓,1)>1.1 and ref(主力持仓,1)>=60;另外,选出来的股票要按某个指标排序,通达信不能实现,当前只有大智慧可以。通达信里,只能按有的字段排序。最后,这个叫是叫主力持仓,但公式里的函数,都只是最普通的行情...
xstk:=low>ref(high, 1);tt1:=barslast(xstk)+1;hh:=ref(high,tt1);:=tt1<-3 and count(xstk,tt)>=1 and low>hh and low<=hh*1.01 andnot(ex**t(cross(hh.low),tt1));count(low>ref(high,1),3)>...