Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | NRTR_Revers

MetaTrader Experts, Indicators, Scripts and Libraries

Idea by: Scriptor

Code mq5 by: barabashkakvn

The EA is only working at the moment when a new bar appears (except for trailing that is active at each tick). Trade signals are formed based on indicator iATR (Average True Range, ATR) on the analysis of the High and the Low of prices within the interval.

First, the volatility range (different) is found: The value of indicator ATR on bar #1 is multiplied by "Coefficient of volatility." Then we calculate depending on the current trend.

If the current trend is BUY:

  • We find the minimum within the interval from bar #2 to the ATR averaging period minus 1. Suppose "ATR: averaging period" is 9. Then we will search for the minimum within the interval from bar #2 to bar #8
  • If the Close price of bar #1 is below the found minimum by different - it is a signal to close BUY positions and open SELL positions. 
  • The current trend is set to "SELL:

The same is done for SELL positions.

22718