- 精华
- 0
- 在线时间
- 30 小时
- UID
- 283647
- 积分
- 16
- 帖子
- 13
- 阅读权限
- 10
- 注册时间
- 2019-9-12
- 最后登录
- 2021-2-23
- 精华
- 0
- UID
- 283647
- 积分
- 16
- 帖子
- 13
- 主题
- 3
- 阅读权限
- 10
- 注册时间
- 2019-9-12
- 最后登录
- 2021-2-23
|
回测组合利润不对的问题已经解决了。重置系统的所有数据就好。
这是另一个问题,帮看看这样子的判断条件会出问题不?
我想在当天快要收盘的时候以当前最新价成交,这样会信号闪烁不?求大神
if(Currenttime>=0.145958 and Currenttime<0.150001 and MarketPosition<=0 and close>=buyline)
{
BuyToCover(0,close);
Buy(lots,close);
}
if(Currenttime>=0.145958 and Currenttime<0.150001 and MarketPosition>=0 and close<=sellline)
{
Sell(0,close);
SellShort(lots,close); |
|