求助如何在随K线模式下使用信号出现开平仓,不是如下面的模式在本周期如C,H,L,O。等等 。
if long then
begin
sellshort(holding<0,holding,limitr,O);
buy(holding=0,1,limitr,O);
end
能再详细的说明白点吗?
可在"交易-图表程序化交易"中,选K线走完,或固定时间间隔两种模式中的一种
想选用哪种模式,详看模式说明和建议.
if long then
begin
sellshort(holding<0,holding,market);
buy(holding=0,1,market);
end
首先谢谢你的答复。我的问题是不想在"交易-图表程序化交易"中,选K线走完,或固定时间间隔两种模式中的一种。是想信号出现就开平仓。
我是想把它编到模型里
if long then
begin
sellshort(holding<0,holding,thisclose);
buy(holding=0,1,thisclose);
end
这样在固定轮询模式下,就是按照及时的对手价格发出委托了
如果是在盘中实盘交易或模拟交易,选用固定时间间隔,就可以信号出现发出委托.
如果是程序化交易测评,不能