EsIstTurnt

Dynamic Highest Lowest Moving Average

EsIstTurnt Updated   
Similar to my last script, although this one uses the RSI value of
(highest high - price) / (price - lowest low)
to feed into the the logic creating the dynamic length. Choose how the length curve works by selecting either Incline, Decline, Peak or Trough.
Lastly select the moving average type to filter the result through to smoothen things out a bit
to find something that works for your strategy. This is useful as an entry/exit indicator along with other moving averages, or even just a standalone if you play with the settings enough.
Release Notes:
Overlay = True
Release Notes:
Cleaned up, fix chart image
Release Notes:
Added more thorough explanation of how we arrive at the average.
Added ability to change the coeficcient, in how different each step up/down will be
Added option to include the current, or former price in the averaging of the highest/lowest values
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?