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, см. Временные рамки параметр ).
    • 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

    • The Временные рамки 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

Голосов пока нет! Будьте первым, кто оценит этот пост.

Сожалеем, что этот пост не оказался для вас полезным!

Давайте улучшим этот пост!

Расскажите нам, как мы можем улучшить этот пост?



Автор: Команда Форекс Вики
Мы команда опытных трейдеров Forex. [2000-2023] которые посвящены жизни на наших собственных условиях. Наша основная цель - достижение финансовой независимости и свободы, и мы занимались самообразованием и приобрели обширный опыт на рынке Forex, чтобы достичь самодостаточного образа жизни..