Divergence Trader - MetaTrader 5 Expert - MT4/MT5 Resources

This Expert Advisor was developed by Ron Thompson, rewritten for MQL4 and originally published here https://www.mql5.com/en/code/8379 via Collector .
The Expert Advisor uses two simple moving averages of the opening price. Calculation is performed using values obtained from the current bar and the previous bar. If rearranged, the formula only represents the difference between the fast MA and the slow MA of the previous bar. The difference above one level and below the other indicates a buy signal. The conditions for a sell signal are exactly the opposite of those for a buy signal.
Trailing stops and breakevens can be set for open positions.
The Expert Advisor has the additional feature of closing all positions in the account when a certain level of profit or loss is reached. The author may have thought of using several Expert Advisors of this type in one account.
The following graph shows the performance of the Expert Advisor in the visual mode of the strategy tester.

Attachment download
📎divergence_trader.mq5 (17.52 KB)
Source: MQL5 #1085
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •