10分钟逐K线模式模型,要在走完K线信号产生时(整个交易时间段,包括夜盘),提前3秒钟下单
ss:=(timetot0(dynainfo(207))>=time0-3 and islastbar) or not(islastbar);
if 开多条件 and ss then begin
sellshort(holding<0,marketr);
buy(holding=0,n,marketr);
end
if 开空条件 and ss then begin
sell(holding>0,0,marketr);
buyshort(holding=0,n,marketr);
end
这个语句是否有问题,为什么我没有实现提前3秒中下单?
sellshort(holding<0,marketr);
平空语句代码有问题,改成
sellshort(holding<0,0,marketr);
如果改了还不行,那说明你的条件有问题,条件恒不成立,你要贴全部代码
我有个地方写错了~~谢谢老师~~~
我再跟踪一下,有问题再向您请教,谢谢~~
枚举一下,比如:
在北京时间坐标
((time=101500) or (time=113000) or (time=150000) or (time=230000) )
如果是金字塔时间坐标,则为
((time=141500) or (time=153000) or (time=190000) or (time=030000) )