if ref(c,1)> enterprice and enterbars>0 then sellshort(holding<0,holding,limitr,close);
if ref(c,1)< enterprice and enterbars>0 and time>=145800 and time<=145900 then sell(holding>0,holding,limitr,close);
当我加上了时间控制后, k线图上没有平仓信号。
if ref(c,1)< enterprice and enterbars>0 and time>=145800 and time<=145900 then sell(holding>0,holding,limitr,open);
当我把价格改为open价后,收益测试又差别太大。请问怎么才能最后收盘的时候才能成交?
谢谢回答。
1、这个是由你运行是选择 固定时间间隔 还是 走完K线决定的 close在最新的那根K线既是收盘价也是最新价
2、你查下交易日志 看模型在那个时刻是否运行。这部分你去策略区参考 阿火模板中 第一个案例
3、与问题1相同
你好,谢谢你的回复。 我的开仓是轮询条件。 所以不能等k线走完,另外我看了阿火老师的帖子,跟我的需求不一样。 还请再赐教。
请问有人能回答吗?