设为首页收藏本站

 找回密码
 注册
查看: 1858|回复: 0
打印 上一主题 下一主题

求教:Dual Thrust 的代码中其他周期如何修改 [复制链接]

Rank: 1

精华
0
UID
229670
积分
4
帖子
2
主题
2
阅读权限
10
注册时间
2016-3-10
最后登录
2020-5-2
跳转到指定楼层
1#
发表于 2017-1-11 13:46:29 |只看该作者 |倒序浏览
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-4-23 23:25

Powered by Discuz! X2 LicensedChrome插件扩展

© 2011-2012 交易开拓者 Inc.

回顶部