您现在的位置:程序化交易>> 期货公式>> 交易开拓者(TB)>> 开拓者知识>>正文内容

关于Dual Thrust策略,怎么改周期 [开拓者 TB]

  • 咨询内容: 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小时线

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容