OPEN-SOURCE SCRIPT
Percentage S&R

This indicator can be used to provide "hidden" Support and Resistance levels, which can be useful for profit-taking and stop-loss levels on swing trades.
The middle white line is the midpoint of the range of the previous 60 candles.
The grey lines above equal the midpoint line +5%, +10%, +15% and +20%.
The grey lines below equal the midpoint line -5%, -10%, -15% and -20%.
This indicator is similar to a Moving Average Envelope, but without the lag.
Doesn't work as well on the extreme low or high time frames. 1 hour - Daily charts seem to be best.
The middle white line is the midpoint of the range of the previous 60 candles.
The grey lines above equal the midpoint line +5%, +10%, +15% and +20%.
The grey lines below equal the midpoint line -5%, -10%, -15% and -20%.
This indicator is similar to a Moving Average Envelope, but without the lag.
Doesn't work as well on the extreme low or high time frames. 1 hour - Daily charts seem to be best.
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.