• <em id="n4cqa"><acronym id="n4cqa"></acronym></em>

    <tbody id="n4cqa"></tbody>

    <tbody id="n4cqa"></tbody>

      <progress id="n4cqa"><track id="n4cqa"><video id="n4cqa"></video></track></progress>
      您現在的位置:程序化交易>> 期貨公式>> 交易開拓者(TB)>> 開拓者公式>>正文內容

      開拓者帶未來的突破性交易策略[開拓者公式]



      Params
          Numeric length(5);
          Numeric hands(1);
          Numeric Stop_win(2000);
          Numeric Stop_loss(1000);
           Numeric n(-2);
      Vars
              Numeric myhigh;
              Numeric mylow;
              Numeric MyEntryPrice;
              Numeric MyExitPrice;
      Begin
            
            if(time>=0.1455)
            {
              if(MarketPosition==1)
                              sell(0,open);
                      if(MarketPosition==-1)
                                      {
                              buytocover(0,open);
                                                    
              }
              }
                                     
             myhigh = Highest(High[1],length);
              mylow = Lowest(Low[1],length);
                    PlotNumeric("myhigh",myhigh);
                    PlotNumeric("mylow",mylow);
              if (High>myhigh and MarketPosition<>1 and open<=myhigh and time>=0.0901 && time <0.1455)
              {
                      Buy(hands,myhigh+n*MinMove*pricescale);
              }//程序化交易 www.miao-tiao.com
              if ( MarketPosition<>1 and open>myhigh and time>=0.0901 && time <0.1455)
              {
               Buy(hands,open);
              }
              if (Low<mylow and MarketPosition<>-1 and open>=mylow and time>=0.0901 && time <0.1455)
              {
                      SellShort(hands,mylow-n*MinMove*pricescale);
              }
              if (  MarketPosition<>-1 and open<mylow and time>=0.0901 && time <0.1455)
              {
                      SellShort(hands,open);
              }
                MyEntryPrice = AvgEntryPrice;
              
                If(MarketPosition==1) // 有多倉的情況
          {
              If(High >= MyEntryPrice + Stop_win)   // 止贏條件表達式
              {
                  MyExitPrice = MyEntryPrice + Stop_win;
                  If(Open > MyExitPrice) MyExitPrice = Open;      // 如果該Bar開盤價有跳空觸發,則用開盤價代替
                  Sell(0,MyExitPrice);
              }else if(Low <= MyEntryPrice - Stop_loss)// 止損條件表達式
              {
                  MyExitPrice = MyEntryPrice - Stop_loss;
                  If(Open < MyExitPrice) MyExitPrice = Open;      // 如果該Bar開盤價有跳空觸發,則用開盤價代替
                  Sell(0,MyExitPrice);
              } //www.chengxuhuajiaoyi.com
          }else if(MarketPosition==-1) // 有空倉的情況
          {
              If(Low <= MyEntryPrice - Stop_win)    // 止贏條件表達式
              {
                  MyExitPrice = MyEntryPrice - Stop_win;
                  If(Open < MyExitPrice) MyExitPrice = Open;      // 如果該Bar開盤價有跳空觸發,則用開盤價代替
                  BuyToCover(0,MyExitPrice);
              }else if(High >= MyEntryPrice + Stop_loss)// 止損條件表達式
              {
                  MyExitPrice = MyEntryPrice + Stop_loss;
                  If(Open > MyExitPrice) MyExitPrice = Open;      // 如果該Bar開盤價有跳空觸發,則用開盤價代替
                  BuyToCover(0,MyExitPrice);
              }
          }


      End
       

       

      有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

      可聯系技術人員 QQ: 262069696  點擊在線交流進行 有償 編寫!不貴!點擊查看價格!

       


      【字體: 】【打印文章】【查看評論

      相關文章

        沒有相關內容
        国产高潮流白浆免费观看
    1. <em id="n4cqa"><acronym id="n4cqa"></acronym></em>

      <tbody id="n4cqa"></tbody>

      <tbody id="n4cqa"></tbody>

        <progress id="n4cqa"><track id="n4cqa"><video id="n4cqa"></video></track></progress>