OPEN-SOURCE SCRIPT

Support and Resistance

521
lookback: This input allows you to specify the number of bars to look back to calculate the support and resistance levels.

support: This is calculated as the lowest low over the specified lookback period.

resistance: This is calculated as the highest high over the specified lookback period.

plot: The support and resistance levels are plotted on the chart with different colors.

bgcolor: This optional feature highlights the support and resistance zones with a semi-transparent background color.

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.