Indicators: ATR Trend Envelopes

 

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.

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.

Author: Mladen Rakic

 

There is something strange in the ATR calculation of this indicator.

If you change the input inpAtrPeriod to any number > 1 the indicator appears exactly the same.

 
Anthony Garot:

There is something strange in the ATR calculation of this indicator.

If you change the input inpAtrPeriod to any number > 1 the indicator appears exactly the same.

Yep. You are right.

Corrected it and updated at the original post. Just re-download it