- 精华
- 0
- 在线时间
- 28 小时
- UID
- 226664
- 积分
- 8
- 帖子
- 4
- 阅读权限
- 10
- 注册时间
- 2016-1-12
- 最后登录
- 2021-1-12
- 精华
- 0
- UID
- 226664
- 积分
- 8
- 帖子
- 4
- 主题
- 2
- 阅读权限
- 10
- 注册时间
- 2016-1-12
- 最后登录
- 2021-1-12
|
Params
Numeric sp(1458);//收盘平仓
Vars
Numeric sj;
NumericSeries gao;//最高价
NumericSeries di;//最低价
Numeric tt;
Begin
If(!CallAuctionFilter()) Return;
sj=IntPart(Time*10000);
di = Min(di[1],Low);
tt = di[1] + 50;
//开多
If(MarketPosition == 0 and High >= tt)
{
Buy(0,tt);
}
//收平
If(MarketPosition == 1 And sj > sp)
{
Sell(0,Open);
}
End 这个错在哪里了,di没有数值 |
|