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 Tempoh masa parameter ).
    • Now this adviser trades directly on two symbols. The second character is taken from the static array ExtArrSymbols :
      String          ExtArrSymbols [ 20 ] =
        ;
      //+------------------------------------------------------------------+
      //| Knowledgeable initialization perform                                   |
      //+------------------------------------------------------------------+
      int OnInit()
    • The precept of opening positions is modified:
      • Now the brand new place "BELI" might be opened solely when the present worth is under the bottom place "BELI";
      • The brand new place "JUAL" might be opened solely when the present worth is increased than the best place of "JUAL":

      Multi Arbitration 1.1xx

    • The Tempoh masa 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 );
      Jika (time_0 == prevtime)
             kembali ; 
         Prevtime = time_0;

      Right here, the variable InpTimeFrame is our enter parameter Tempoh masa . Justeru, relying on the worth of the enter parameter Tempoh masa, 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

Betapa bergunanya siaran ini?

Klik pada bintang untuk menilainya!

Penilaian purata 0 / 5. Kiraan undi: 0

Tiada undi setakat ini! Jadilah yang pertama menilai siaran ini.

Kami memohon maaf kerana siaran ini tidak berguna untuk anda!

Mari kita perbaiki siaran ini!

Beritahu kami cara kami boleh menambah baik siaran ini?



Pengarang: Pasukan Wiki Forex
Kami adalah pasukan Pedagang Forex yang sangat berpengalaman [2000-2023] yang berdedikasi untuk menjalani kehidupan dengan syarat kita sendiri. Objektif utama kami adalah untuk mencapai kebebasan dan kebebasan kewangan, dan kami telah meneruskan pendidikan kendiri dan memperoleh pengalaman yang luas dalam pasaran Forex sebagai cara kami untuk mencapai gaya hidup mampan diri.