MA MACD Position Average v2 - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources

Improvements to the first version ( MA MACD Position Average ). The EA is characterized by the reversal of trading signals at the initial opening of a position (when there is no open position). Contrarian management is done by using inverse trading signal ranges.
The EA checks for trading signals or adds positions only when a new bar appears.
The EA is based on the indicators iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD). If the loss of the position exceeds the out-of-step point, open another position (in the direction of the losing position) and increase the lot size ( the lot factor is taken into account).
The EA holds only one position or multiple positions in the same direction. This EA has two parameters: MA indent price and main signal to signal ratio (both are shown in the image below)

Example of a buy signal: the MACD indicator is below "0.0", the main line (MAIN) is above the signal line (SIGNAL), and the current price is above the moving average. Two filters are added to this condition:
You can select which measure to check - on zero (current) one or on measure #1. This is defined by the bar current range.
The following data are collected on new bars: the number of buy and sell positions and the most losing buy and sell positions (in terms of pips). If it turns out that there are both buy and sell positions, it is considered an error and all positions are closed. If the most losing position is found and this position is unprofitable for more than out of step pips, the parameters of this position (bills and lots) will be remembered.
Attachment download
📎 ma_macd_position_averaging_v2.mq5 (59.29 KB)
Source: MQL5 #22854
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •