设为首页收藏本站

 找回密码
 注册
查看: 1618|回复: 0

关于Dual Thrust策略,怎么改周期 [复制链接]

Rank: 1

精华
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小时线
您需要登录后才可以回帖 登录 | 注册

bottom

静态版|手机版|联系我们|交易开拓者 ( 粤ICP备07044698   

GMT+8, 2024-3-29 06:25

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部