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

这个代码为什么 放到 [开拓者 TB]

  • 咨询内容: Params

    Vars
       NumericSeries MA15(0);

    Begin
         if (barstatus==0) { SetGlobalVar(0,0);setglobalvar(1,0);}
       
        PlotNumeric("MA15",averageFC(close,15),0,-1,0);
        MA15=averageFC(close,15);
            If(  A_Totalposition==0 and GetGlobalVar(0)==0 and  close[1]<ma15 and close>=Ma15  and A_OpenOrderLot==0 and barstatus==2 )
            {
             A_SendOrder(enum_buy,enum_entry,1,Q_askprice+5*minmove*pricescale,0,0);
             SetGlobalVar(0,1);
            }
           
        If(A_TotalPosition >0 ) SetGlobalVar(0,0);
        If(a_totalposition>0  and Close<close[1] and GetGlobalVar(1)==0 )
            {
             A_SendOrder(enum_sell,enum_exit,1,Q_bidprice-5*minmove*pricescale,0,0);;
             SetGlobalVar(1,1);
            }
            If(A_TotalPosition==0) SetGlobalVar(1,0);

           
            End
                   为什么这个程序  盘中模拟没有反应呢??  有什么地方没做对么

          

 

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

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


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

相关文章

    没有相关内容