- 精华
- 0
- 在线时间
- 34 小时
- UID
- 229670
- 积分
- 4
- 帖子
- 2
- 阅读权限
- 10
- 注册时间
- 2016-3-10
- 最后登录
- 2020-5-2
- 精华
- 0
- UID
- 229670
- 积分
- 4
- 帖子
- 2
- 主题
- 2
- 阅读权限
- 10
- 注册时间
- 2016-3-10
- 最后登录
- 2020-5-2
|
发表于 2017-1-11 13:43:58
|显示全部楼层
Params
Numeric Lots(1);
Numeric TimesMaxToday(1); //限制当天开仓最多次数;
Numeric K1(0.5);
Numeric K2(0.5);
Numeric Mday(1);
Numeric Nday(1);
Numeric offset(0);
Vars
Numeric BuyRange(0);
Numeric SellRange(0);
Numeric BuyTrig(0);
Numeric SellTrig(0);
Numeric HH;
Numeric LL;
Numeric HC;
Numeric LC;
Numeric i_offset;
Numeric BuyPosition;
Numeric SellPosition;
NumericSeries TimesToday(0); //记录当天开仓次数;
Begin
If(Barstatus==2 )
{
If( Time==0.090000 And CurrentTime<=0.090001) Return;
If( Time==0.101500 And CurrentTime<=0.103001) Return;
If( Time==0.133000 And CurrentTime<=0.133001) Return;
}
If(CurrentBar > 44*Max(Mday,Nday))//使用的是5分钟周期,其它的周期自己做相应修改
这里怎么改成其他周期,比如日线,1小时线 |
|