dif:=ema(close,short) ema(close,long);dea:=ema(dif,mid);macd:=2*(dif-dea);condtion_a:=c=llv(c,30);condtion_b1:=macd=min(macd,0);condtion_b2:=not(macd=llv(macd,30));condtion_b:=condtion_b1 and condtion_b2;condtion:condtion_a and condtion_b; 20210311
{周k线缩量十字星收盘在10周线上并且10周线拐点向上。}xg: abs((close-open)/open)<0.015 and close>ma(close,10) and ma(close,10)>ref(ma(c,10),1) and (ref(ma(c,10),1)<ref(ma(c,10),2));{说明:1选股周期为周线,2加入条件}
大阴线的定义是低于开盘价多少?定义为n,自行修改参数。多长时间修复?定义为m,自行修改参数。t1:=o/ref(close,1)>=1.06;t2:=close/o<=1-n/100;t3:=barslast(t1 and t2);t4:=close>ref(o,t3);xg:t3<=m and t4;
根据你的要求条件,我使用通达信南京证券版来写,公式为:公式名称:通达信公式1公式类型:指标条件选股代码如下:通达信:=finance(33)>0.50 and finance(18)>2 and finance(32)>=1.5 and finance(1)<150000000 and finance(25)>0.3;通达信;我试过可以选出股票.