请老师帮忙写个通达信能用的涨停回调预警公式,非常感谢!

2025-01-02 19:16:25
推荐回答(1个)
回答1:

ZT1:=C>=INTPART(REF(C,1)*(1.0985)*100)/100;
TS1:=BARSLAST(ZT1);
ZD1:=C>MA(C,10) AND L=MA(C,10)*0.995;
涨停回调:RANGE(TS1,2,10) AND COUNT(C=TS1-2 AND ZD1
and ma(c,20)>ref(ma(c,20),1);

信号太少,适当放大系数。如:
ZT1:=C>=INTPART(REF(C,1)*(1.0985)*100)/100;
TS1:=BARSLAST(ZT1);
ZD1:=C>MA(C,10) AND L=MA(C,10)*0.98;
涨停回调:RANGE(TS1,2,10) AND COUNT(C=TS1-2 AND ZD1;