Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Experts

Breadandbutter2 - expert pour MetaTrader 5

Publié par:
Vladimir Karputov
Vues:
2680
Note:
(12)
Publié:
2018.10.25 15:48
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

The author of the ideaScriptor

MQL5 code author: barabashkakvn

The EA based on iADX (Average Directional Movement Index, ADX) and iAMA (Adaptive Moving Average, AMA) indicators. The EA only operates when a new bar appears. When receiving a trading signal, opposite positions are closed.

The search for the best parameters for the symbol and the timeframe should be carried out in two ways:

manual - editing "<" ">" characters in the signal equations:

   if(adx_0<adx_1 && ama_0>ama_1)
     {
      ClosePositions(POSITION_TYPE_SELL);
      double sl=(InpStopLoss==0)?0.0:m_symbol.Ask()-ExtStopLoss;
      if(sl>=m_symbol.Bid()) // incident: the position isn't opened yet, and has to be already closed
        {
         PrevBars=0;
         return;
        }
      double tp=(InpTakeProfit==0)?0.0:m_symbol.Ask()+ExtTakeProfit;
      OpenBuy(sl,tp);
      return;
     }

   if(adx_0>adx_1 && ama_0<ama_1)
     {
      ClosePositions(POSITION_TYPE_BUY);
      double sl=(InpStopLoss==0)?0.0:m_symbol.Bid()+ExtStopLoss;
      if(sl<=m_symbol.Ask()) // incident: the position isn't opened yet, and has to be already closed
        {
         PrevBars=0;
         return;
        }
      double tp=(InpTakeProfit==0)?0.0:m_symbol.Bid()-ExtTakeProfit;
      OpenSell(sl,tp);
      return;
     }

automatic - selecting stop loss, take profit and AMA indicator horizontal shift:

Breadandbutter2

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/22003

NeuroNirvamanEA 2 NeuroNirvamanEA 2

The trading system is based on a simple neural network.

Hans_Indicator Hans_Indicator

The indicator of expanding time zone corridors

XDeMarker_Histogram_Vol XDeMarker_Histogram_Vol

DeMarker_Histogram_Vol indicator with additional averaging of the resulting histogram

TP SL Trailing TP SL Trailing

Stop loss and take profit initial setting. Trailing.