Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Telegram !
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
Vues:
5461
Note:
(6)
Publié:
2018.07.13 15:24
\MQL5\Include\ \MQL5\Indicators\
NRTR.mq5 (9.91 KB) afficher
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Two identical trading systems (for long and short positions) based on the signals of indicator NRTR, which can be differently configured within one EA. For this purpose, all inputs of the EA are divided into two large groups:

  1. If their names start with L, these are inputs to manage long positions;
  2. If their names start with S, these are inputs to manage short positions.
//+----------------------------------------------+
//| EA input parameters for long positions       |
//+----------------------------------------------+
input uint    L_Magic=777;          //L magic number
input double  L_MM=0.1;             //L share of a deposit in a deal
input MarginMode L_MMMode=LOT;      //L lot size detection method
//+----------------------------------------------+
//| EA input parameters for short positions      |
//+----------------------------------------------+
input uint    S_Magic=555;          //S magic number
input double  S_MM=0.1;             //S share of a deposit in a deal
input MarginMode S_MMMode=LOT;      //S lot size detection method

These two trading systems use different magic numbers and are absolutely independent on each other. Real financial markets are rarely symmetrical, so it is often a case that absolutely different parameters of the same trading system are required for bullish and bearish trading. For a convenient EA setting, you should initially test only one of the two trading systems, having disabled the second one using relevant switches.

input bool    L_PosOpen=true;       //L permission to enter long positions
input bool    L_PosClose=true;      //L permission to close long positions

Upon having set up the first system, you should enable and set up the second one only.

For the EA to operate, the compiled NRTR.ex5 indicator file must be in the <terminal_data_folder>\MQL5\Indicators folder.

The default EA inputs were used in tests below. Stop Loss and Take Profit were not used in testing.

Fig 1. Exemplary trades in a chart with symmetrical settings.

Fig 1. Exemplary trades in a chart with symmetrical settings.

Test results for GBPJPY H4 over the year 2016:

Fig. 2. Testing results chart.

Fig. 2. Testing results chart.

Fig. 3. Exemplary trades in a chart with non-symmetrical settings.

Fig. 3. Exemplary trades in a chart with non-symmetrical settings.

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

XPeriodCandleSystem XPeriodCandleSystem

Indicator XPeriodCandle supplemented by Bollinger Bands, based on their candlesticks, and indicating with the bright candlestick color if the candlesticks go beyond the bands.

Bear_Bulls_Power_Candle Bear_Bulls_Power_Candle

A candlestick-based chart based on histograms Bear_Bulls_Power calculated on the Open, High, Low, and Close timeseries of the price chart.

Bear_Bulls_Power_Period_Candle Bear_Bulls_Power_Period_Candle

Synthetic Japanese candlesticks over the period defined in the indicator settings, calculating on each bar, based on the Bear_Bulls_Power_Candle indicator candlesticks.

Alexav D1 Profit GBPUSD Alexav D1 Profit GBPUSD

The Expert Advisor places four positions with different Take Profit levels per time. As soon as one Take Profit triggers, the other positions will be moved to breakeven.