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
Experts

Exp_MA_Rounding_Candle_MMRec - expert pour MetaTrader 5

Vues:
2162
Note:
(9)
Publié:
2018.10.25 14:58
Mise à jour:
2023.03.29 13:48
\MQL5\Include\ \MQL5\Indicators\
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

The trading system based on the MA_Rounding_Candle indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system. Trading signals are formed when a bar closes if a trend has changed (which is displayed by candles changing their color).

The block of input EA variables is added for managing volumes of opened positions:

input uint    BuyTotalMMTriger=5; // The number of the last Buy deals to calculate stop loss
input uint    BuyLossMMTriger=3;  // The number of losing Buy deals to reduce MM
input uint    SellTotalMMTriger=5;// The number of the last Sell deals to calculate stop loss
input uint    SellLossMMTriger=3; // The number of losing Sell deals to reduce MM
input double  SmallMM_=0.01;      // Share of a deposit in a deal in case of loss
input double  MM=0.1;             // Share of a deposit in a deal during normal trading
input MarginMode MMMode=LOT;      // Lot value determining method

In case of such inputs and when selecting from the last five trades, three of which are loss-making in a single direction, the EA opens the next trade in the same direction having the volume of 0.01 lot. If there are less than three loss-making trades out of the last five ones, the position volume is 0.1.

For the generated EA to operate correctly, the compiled files of indicators MA_Rounding.ex5 and MA_Rounding_Candle.ex5 should be present in the <terminal_data_directory>\MQL5\Indicators folder.

Default Expert Advisor's input parameters with stops have been used during tests shown below.

Fig. 1. Examples of trades on the chart

Fig. 1. Examples of trades on the chart

GBPJPY H1 testing results over the year of 2017:

Fig. 2. Test results chart

Fig. 2. Test results chart

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

Exp_XHullTrend_Digit Exp_XHullTrend_Digit

Exp_XHullTrend_Digit is based on signals generated by XHullTrend_Digit indicator

Exp_SSL_NRTR_Tm_Plus Exp_SSL_NRTR_Tm_Plus

The trading system based on SSL_NRTR indicator signals with the possibility to set a fixed position holding time

Trix Trix

Trix oscillator indicator

TBS_Histogram TBS_Histogram

Tick Based Stochastic with histogram