OPEN-SOURCE SCRIPT

Price Change History

Updated
Display a histogram of price changes over a given interval. Show change as a percentage or in dollar amount. Highlight changes that exceed a particular value.
Release Notes
By default, the histogram shows price change since the previous bar. This update allows you to display price change since any number of bars ago.
Release Notes
Separate high and low highlighting.
Release Notes
Update study shorttitle.
Release Notes
The ratio of highlighted to unhighlighted bars is now shown as the orange number ranging from 0 to 1.
It takes into consideration the previous 50 bars by default, but can be changed by the user under settings.
Release Notes
- Updated the names of a few settings to be clearer as to what they do.
- Included some documentation in the source code to explain each setting.
Release Notes

- Add default precision
- Improve comments
Release Notes
Updated to Pine Script v4
Release Notes
- Update to Pine Script v5
- Additional comments
- Code cleanup
changeChart patternshistoryOscillatorspriceVolume

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer