请教金老师;我是普通版软件,模型是5分钟周期走完K线下单模式,我想要实现信号走完前提前几秒下单,我在网上查到有一篇叫‘阿火秘籍’的介绍了一个方式可以实现;请教老师;这个方法是否可以?或者您能否有更好的方法解决,谢谢!
ma5:=ma(c,5);
ma10:=ma(c,10);
input:tq(5,3,60,1);
abb:=(time0-timetot0(dynainfo(207))<=tq) or not(islastbar);
if abb then begin
if holding>0 and ma5<ma10 then sell(1,1,thisclose);
if holding<0 and ma5>ma10 then sellshort(1,1,thisclose);
if holding=0 and ma5>ma10 then buy(1,1,thisclose);
if holding=0 and ma5<ma10 then buyshort(1,1,thisclose);
end