zb1:=ema(c,34);长期趋势:=ema(zb1,13);止损:=ema(c,5);菩提b:=xma(h,20);参买:=if(止损>=ref(止损,1),止损,draw**);csar:=sar(10,2,20);持股:=if(csar,csar,0);xg:cross(l,csar)and 参买>0 and h<菩提b and 持股>0 and h>长期趋势; 20210311
var3aa:=if((close>ref(close,1)),88,0);var4aa:=if(((close)/(ref(close,1))>1.05) and ((high)/(close)<1.01) and (var3aa>0),91,0);预警:filter((var4aa>90),45) or filter((var4aa>90),35);
{最简单的选股} n:=10;n1:=6;wr1:=100*(hhv(high,n)-close)/(hhv(high,n)-llv(low,n));wr2:=100*(hhv(high,n1)-close)/(hhv(high,n1)-llv(low,n1));xg:wr1>80 and wr2>80;