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 Indicator | ATR Trend Envelopes

Trend Envelopes indicator is calculated based on a % of price change. That % is then used to determine if there is a new trend or trend remains the same.

This version is using ATR for the price change calculation instead.

MetaTrader Experts, Indicators, Scripts and Libraries

The reason why the ATR is used is the following - the % change works OK for middle term timeframes. But for short timeframes and long timeframes it tends to be either too slow or too fast. Here is a comparison of this indicator (upper) and the "classical" version (lower) on daily timeframe. It is obvious that the difference is big and that the "trend" should be redefined in the "classical" calculation.

MetaTrader Experts, Indicators, Scripts and Libraries

MetaTrader Experts, Indicators, Scripts and Libraries

21810