- 精华
- 0
- 在线时间
- 42 小时
- UID
- 281710
- 积分
- 4
- 帖子
- 2
- 阅读权限
- 10
- 注册时间
- 2019-7-22
- 最后登录
- 2023-2-21
- 精华
- 0
- UID
- 281710
- 积分
- 4
- 帖子
- 2
- 主题
- 2
- 阅读权限
- 10
- 注册时间
- 2019-7-22
- 最后登录
- 2023-2-21
|
If(MarketPosition == 0){
If(high>=buyposition){
Buy(lots,buyposition+i_offset);
Return;
}
If(low<=sellposition){
SellShort(lots,sellposition-i_offset);
Return;
}
}
If(MarketPosition ==-1){
If(high>=sellExitPosition){
BuyToCover(lots,sellExitPosition+i_offset);
Return;
}
}
If(MarketPosition == 1){
If(low<=buyExitPosition){
Sell(lots,buyExitPosition+i_offset);
Return;
}
}
这是交易代码,为何JD2005的模拟盘中14:45分在图标中回测已经能看到有交易信号,但当时日志中并无任何记录,但后来日志显示为(2020/04/03 23:53:45.748自动交易信息:帐户[tbsim_2019_006369]商品[jd2005]类型[买开]数量[1]价格[3102.00000000]),有大神能帮忙解释下不 |
|