OPEN-SOURCE SCRIPT
Oscillator2Overlay

This experimental study "normalizes" a series into a consistent range such that it can be "overlayed" against an oscillator that's typically plotted independently.
It then "denormalizes" the oscillator's signal into the series' original domain, such that important thresholds can _also_ be denormalized into the series' original domain.
The normalization/denormalization performed using a long-window bollinger band to define a domain for mapping between-chart space and oscillator-space.
This example maps "rsi" into the chart-domain.
(!!) Inspired by
It then "denormalizes" the oscillator's signal into the series' original domain, such that important thresholds can _also_ be denormalized into the series' original domain.
The normalization/denormalization performed using a long-window bollinger band to define a domain for mapping between-chart space and oscillator-space.
This example maps "rsi" into the chart-domain.
(!!) Inspired by

Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.