Multi Arbitration

0
(0)

Growth of the code Multi Arbitration 1.000 .

Variations from 1.000 :

    • The Knowledgeable Advisor ONLY begins on PERIOD_M1 (see under for the reason, see the 時間枠 パラメータ ).
    • Now this adviser trades directly on two symbols. The second character is taken from the static array ExtArrSymbols :
      String          ExtArrSymbols [ 20 ] =
        ;
      //+------------------------------------------------------------------+
      //| Knowledgeable initialization perform                                   |
      //+------------------------------------------------------------------+
      整数 OnInit()
    • The precept of opening positions is modified:
      • Now the brand new place "買う" might be opened solely when the present worth is under the bottom place "買う";
      • The brand new place "売る" might be opened solely when the present worth is increased than the best place of "売る":

      Multi Arbitration 1.1xx

    • 時間枠 parameter is entered - now you'll be able to optimize on any interval of the graph. The Knowledgeable Advisor itself works solely when a brand new bar seems on the principle image (on the image on which the Knowledgeable Advisor is operating):
      // + ----------------------------------------------- ------------------- + 
      // | Knowledgeable tick perform | 
      // + ----------------------------------------------- ------------------- + 
      void  OnTick ()
        {
      // --- we work solely on the time of the beginning of latest bar 
         static  datetime prevtime = 0 ;
         datetime time_0 = iTime ( 0 , m_symbol_one.Title () , InpTimeFrame );
      もしも (time_0 == prevtime)
             戻る ; 
         Prevtime = time_0;

      ここに, the variable InpTimeFrame is our enter parameter 時間枠 . したがって, relying on the worth of the enter parameter 時間枠, we will make the EA work on any timeframe!

The outcomes of the take a look at for EURUSD:

Multi Arbitration 1.1xx test

 

Multi Arbitration 1.1xx.mq5

この投稿は役に立ちました?

星をクリックして評価してください!

平均評価 0 / 5. 投票数: 0

これまでのところ投票はありません! この投稿を最初に評価してください.

この投稿が役に立たなかったことをお詫び申し上げます!

この投稿を改善しましょう!

この投稿を改善する方法を教えてください?



著者: 外国為替ウィキチーム
私たちは経験豊富な外国為替トレーダーのチームです [2000-2023] 自分の思いどおりに人生を生きることに専念している人. 私たちの主な目的は、経済的自立と自由を獲得することです, 私たちは自立可能なライフスタイルを実現する手段として、独学で外国為替市場での豊富な経験を積んできました。.