图表有信号,实盘无委托是什么原因?
cc:=stkindi('ta13','PTA1小时模型2号.持仓',0,5,0);
sjtq:=(time0-timetot0(dynainfo(207))<=5 and islastbar) or not(islastbar);
if holding>0 and cc<=0 and sjtq then begin
sell(1,1,limitr,c);
end
if holding<0 and cc>=0 and sjtq then begin
sellshort(1,1,limitr,c);
end
if holding=0 and cc>0 and sjtq and then begin
buy(1,1,limitr,c);
end
if holding=0 and cc<0 and sjtq and then begin
buyshort(1,1,limitr,c);
end
我用的是当前的最新价CLOSE 原模型盘中信号是会闪烁的,再通过时间控制让它快收盘前下单,没理由啊?
cc:=stkindi('ta13','PTA1小时模型2号.持仓',0,5,0);
sjtq:=(time0-timetot0(dynainfo(207))<=5 and islastbar) or not(islastbar);
if holding>0 and cc<=0 and sjtq then begin
sell(1,1,limitr,c);
end
if holding<0 and cc>=0 and sjtq then begin
sellshort(1,1,limitr,c);
end
if holding=0 and cc>0 and sjtq and then begin
buy(1,1,limitr,c);
end
if holding=0 and cc<0 and sjtq and then begin
buyshort(1,1,limitr,c);
end
是不是要把被引用的合约的K线图打开才行?我早上开盘后接受完昨日的数据之后就把被引用的合约框架关闭了。