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

MA MACD Position averaging v2 - expert pour MetaTrader 5

Vues:
7585
Note:
(26)
Publié:
2018.12.28 12:56
Mise à jour:
2019.01.17 11:29
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Improvement of the first version (MA MACD Position averaging). The EA features the trading signal reversal upon initial opening (when there are no positions). The reverse is managed via the Use reverse trade signal parameter.


The EA only checks for a trading signal or an addition to the position when a new bar appears.

The EA is based on indicators iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD). If a position has a loss exceeding Step lossing pips, open yet another position (in the loss-making position direction) with an increased lot (Lot coefficient is considered).

The EA holds only one position or multiple positions of the same direction. The EA features two parameters: Indent price from MA and Ratio of MAIN to SIGNAL (both are displayed on the image below)

MA MACD Position averaging

Sample BUY signal: MACD indicator is below "0.0", the main line (MAIN) exceeds the signal line (SIGNAL) and the current price is higher than Moving Average. Two filters are added to this condition:

  • Ratio of MAIN to SIGNAL
  • Indent price from MA

You can select a bar to be checked - on a zero (current) one or on bar #1. This is defined by the Bar Current parameter.


EA operation

The following data is collected on a new bar: Number of BUY and SELL positions and the most loss-making (according to the number of pips) BUY and SELL positions. If it turns out that there are both BUY and SELL positions at the same time, this is considered to be an error and ALL positions are closed. If the most loss-making position is found and it is unprofitable by more thanStep lossingpips, then the parameters of this position (the ticket and the number of lots) are remembered.

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

RVI_Histogram_Alert RVI_Histogram_Alert

Indicator RVI_Histogram provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

Stochastic_Histogram_Alert Stochastic_Histogram_Alert

Indicator Stochastic_Histogram provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

XFisher_org_v2_Candle XFisher_org_v2_Candle

Indicator XFisher_org_v2_Candle highlights the candles, the Close prices of which are closed within overbought/oversold zones

Stochastic_Histogram_HTF Stochastic_Histogram_HTF

Indicator Stochastic_Histogram with the timeframe selection option available in its input parameters