OPEN-SOURCE SCRIPT
Updated

Hi/Lo Swing Index [by hajixde]

6 203
Author: Hajixde
This indicator illustrates the High-to-Low variation. It works nicely on shorter time frames.
The index value is calculated based on the observation length (Memory Length). By changing this input, you can have a wider or shorter observation range.
MA Length is the moving average filter length, which smooths out the signal.
There is an additional smoothing function to make the output even smoother (Smoothing Length). Remember, that "Smoothing Length" is better to be less than "MA Length".
You may activate the trend direction.
Release Notes
In this release, you can change the resolution.

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.