sbtnc

Previous Day Week Highs & Lows

sbtnc Updated   
This script plots the previous n day and week highs and lows (previous two days and previous week by default).

Here are some additional info about the script behavior:
  • Plots highs and/or lows
  • Plots for days and/or weeks
  • Day highs and lows are shown only on intraday timeframes
  • Week highs and lows are shown only on timeframes < weekly
Release Notes:
  • Add previous month(s) high(s) and low(s)
  • Minor fixes and improvements
Release Notes:
v3.0

The update brings a complete rewrite of the indicator from plots to lines. This implementation allows the introduction of two new optional improvements:

  • Enable projecting the lines on the right side
  • Highlight the recency of highs and lows

👨‍💻 Pine Script developer for hire

⭐️ Listed as "Trusted Pine Programmer"

🔒 Premium indicators: sbtnc.gumroad.com

☕️ Support me: buymeacoffee.com/sbtnc
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?