Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzman Danışmanlar

Future___ - MetaTrader 4 için Uzman Danışman

Görüntülemeler:
17062
Derecelendirme:
(11)
Yayınlandı:
2016.07.01 09:40
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Attempt to create a grid encouraged me to do this.

Take N+M bars on history interval. Write the indicator signals among N bars, and the result among M bars.

This results in a file named [sequence of indicator signals from N bars].csv.

The file contains the subsequent history results.

For example, write the following to a small block:

      int history [1000];
      for (int i=analiz_bars+poisk_fractals;i>poisk_fractals;i--)
         {
         history [i] = NormalizeDouble((tocnost*iMACD(NULL,0,Per_MACD/4,Per_MACD,9,PRICE_CLOSE,MODE_MAIN, i)/(100*Point)),0);
         }
It outputs an array which is further used here:
      string posledovatelnost = shethik +"_";
      for (i=analiz_bars+poisk_fractals;i>poisk_fractals;i--)
         {
         posledovatelnost =posledovatelnost+history [i]+"_";
         }
      posledovatelnost = posledovatelnost +".csv";

Then save the file with the name [posledovatelnost].

Write the number of calls (to determine the statistical weight) and results of the following block to that file:

      double MaxHighPik = High [poisk_fractals]; //Start comparing the bars
      double MaxLowPik = Low [poisk_fractals];  
      for (i=poisk_fractals; i>=1; i--)
         {
         if (MaxHighPik < High [i])
            {
            MaxHighPik = High [i];     
            }
         if (MaxLowPik > Low [i])
            {
            MaxLowPik = Low [i];       
            }
         }
         
      double Fractal_Up = (MaxHighPik - Open [poisk_fractals])/Point;
      double Fractal_Down = (Open [poisk_fractals]-MaxLowPik)/Point;
The movement direction of the following N bars and the reached maximums are determined here. The results are written as averaged with the ability to assign the more recent data an increased or decreased statistical weight using the zabyvaemost variable. The indicator values are additionally averaged by the tocnost variable. With minimal averaging only the direction +1 or -1 is given.

But. Despite the wonderful looks the results are not impressive. Two expert advisors are provided as example. Profitability rarely rises above 1.1

Example of using the MA:

If anyone manages to make a decent EA, please contact me.

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/8654

Billy expert Billy expert

The Expert Advisor uses a certain candlestick pattern and Stochastic.

ChangeObjectsColor ChangeObjectsColor

The script allows to change the color of selected objects to specified one.

Stochastic Divergence Stochastic Divergence

Divergence based on a standard Stochastic with Alert and language selection.

Doubler Doubler

Simple Expert Advisor that simultaneously opens two positions in different directions, provided that the stop loss of the losing position triggers 5 points earlier than the take profit of the profitable one.