选股一:(注意包含了dclose函数,是个移动函数,但是和普通的未来函数有区别)diff:=ema(dclose,12)-ema(dclose,26);dea:=ema(diff,9),colorffff00;macd:=(diff-dea)*2;a1:=barslast(ref(cross(diff,dea),1));a2:=barslast(ref(cross(dea,diff),1));底背离:ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);选股二:(其实就是把第一个选股公式的dclose改为了close)diff:=ema(close,12) - ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);a1:=barslast(ref(cross(diff,dea),1));b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);filter(b1>0,5)选股三:diff:=ema(close,12) - ema(close,26);dea:=ema(diff,9);ab:=ref(dea,20);bb:=ref(close,30);低值:=llv(dea,25);选股:cross("kdj.j","kdj.d")and "kdj.d"<30 and dea>ab and dea>低值 and close<bb and 低值<-0.2; 20210311
主力持仓:=ema(100*(close-llv (low,34))/(hhv(high,34)-llv(low,34)),3); 主力**集中度:=winner(c)*100;散筹**集中度:=(winner(c*1.1)-winner(c*0.9))*100;cross(主力持仓,散筹**集中度) and 主力**集中度>90;上面的四行就可以了。祝顺利。