开拓者期货期权程序化系统交易论坛

标题: 求教:Dual Thrust 的代码中其他周期如何修改 [打印本页]

作者: aijunzhao    时间: 2017-1-11 13:46:29     标题: 求教:Dual Thrust 的代码中其他周期如何修改

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小时线吗




欢迎光临 开拓者期货期权程序化系统交易论坛 (http://bbs.tb18.net/) Powered by Discuz! X2