编写要求:
14:00点左右阴线选股时,前2~3天股价接连下跌,这2~3天成交量持续缩量,接近MA20,且这2~3天的MA20数值是在递增的。
公式在线网解答:
ma20:=ma(c,20);
tj1:=c<ref(c,1) and ref(c,1)<ref(c,2) and ref(c,2)<ref(c,3) and ref(c,3)<ref(c,4);{今天阴线、前三天连续阴线}
tj2:=v<ref(v,1) and ref(v,1)<ref(v,2) and ref(v,2)<ref(v,3) and ref(v,3)<ref(v,4);{今天缩量、前三天连续缩量}
tj3:=ma20>=ref(ma20,1) and ref(ma20,1)>=ref(ma20,2) and ref(ma20,2)>=ref(ma20,3) and ref(ma20,3)>=ref(ma20,4);{MA20数值是在递增}
tj4:=BETWEEN((c-ma20)/c,0,0.01);{收盘价与MA20差值在1%内}
xg:tj1 and tj2 and tj3 and tj4;