wr1:=100*(hhv(high,10)-close)/(hhv(high,10)-llv(low,10));wr2:=100*(hhv(high,6)-close)/(hhv(high,6)-llv(low,6));wr3:=ref(wr1,1)>60 and ref(wr2,1)>60 and wr1<60 and wr1<60;typ:=(high+low+close)/3;cci1:=(typ-ma(typ,34))/(0.015***edev(typ,34));cci2:=cross(cci1,-100);vol1:=ma(vol,3)>ma(vol,60);xg:wr3 and cci2 and vol1; 20210311
{“主力持仓”+“主力**集中度”共同上涨的选股公式}主力持仓:=ema(100*(close-llv(low,34))/(hhv(high,34)-llv(low,34)),3);主力**集中度:=winner(c)*100 ;主力持仓>ref(主力持仓,1) and 主力**集中度>ref(主力**集中度,1);