OPEN-SOURCE SCRIPT

Percentage Change

307
This is a very simple script. It calculations the percentage the stocks price has changed with 3 different metrics over the configured lookback period.

- Close to Open: calculates the percentage difference between the opening bar at the beginning of the lookback period to the closing current bar.
- Low to High: calculates the percentage difference between the lowest low to the highest high over the period.
- High to Low: calculates the percentage difference between the highest high to the lowest low over the period.

This indicator is used to call out especially volatile periods allowing traders to target spikes up or down.

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.