Diff_TF_MA_EA - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources


Expert Advisor signals are based on the common intersection of two MA lines. These are the Signal Divergence_TF_MA indicator:
Open an appropriate position based on a signal. The opposite position has been closed.
This indicator is not required for EA operation, since the calculation of the required moving averages is implemented directly in the EA code.
The Expert Advisor can reverse an indicator signal to open selling instead of buying and vice versa. You can also set stop loss and profit points. If invalid StopLoss and TakeProfit values are specified, the EA will adjust these values to the minimum allowed symbol of the StopLoss level .
The Expert Advisor also adjusts the lot size if the specified value is incorrect. If the lot size is too large, the EA will adjust it to be able to open a position. If there are no funds to open a position even with the minimum lot size, the signal will be skipped.
This EA has nine input parameters:
In order to check this strategy, a test with default settings was conducted using data from the interval 2017.01.02 to 2018.01.19. Unfortunately, the EA does not show good results with default settings. So, test in reverse mode. The results were better. Additionally, the MA epoch was optimized in the range of 1 to 20 by step 1. The best value when optimizing the maximum balance is period 8.

Figure 1 Test results 2017.01.02 - 2018.01.19, Issue 8, transaction reversal enabled

Figure 2 2017.01.02 - 2018.01.19 No. 8 test chart, start trading reversal
Attachment download
📎 diff_tf_ma_ea.mq5 (39.78 KB)
Source: MQL5 #19906
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •