sbtnc

Previous Day Week Highs & Lows

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
Skript med en öppen källkod

I sann TradingView-anda har författaren till detta skript publicerat det som öppen källkod, så att handlare kan förstå och verifiera det. Skål för författaren! Du kan använda den gratis men återanvändning av den här koden i en publikation regleras av våra Ordningsregler. Du kan göra den till favorit för att använda den i ett diagram.

Vill du använda det här skriptet i ett diagram?
I have private indicators too!

Get access to them via: https://www.patreon.com/sbtnc

Kommentarer

Hello, I am using Heikinashi hourly chart for trading. Take previous day's highest close/open in hourly chart as support/ resistance. Can you please explain how I can draw the line?
+1 Svara
sbtnc thajudeenkm
Okay @thajudeenkm, please check your PM!
+1 Svara
Looks like a nice script, however, there is an issue with it. For e-mini sp500 it calculates previous day high and low starting from the evening session 18:00 EST which is wrong. The session for e-mini starts at 9:30 AM ends at 5 PM and reopens at 6 PM for the night. And starts again at 9:30 AM the next day. Hope that you can fix it. Thank you.
Svara
sbtnc Intuitive_Trader
@Intuitive_Trader, The script uses the session defined by a specific instrument that you can find in “Symbol Info” (in your case, it’s likely to be 17:00-16:00 Chicago time).
So, the start time is the same as any candles from the daily timeframe and it’s intended to be like this.
Svara
Thanks for adding the previous month high and low!
Svara
sbtnc Madcaptains
@Madcaptains, It was a nice addition to the script!
Svara
Loving the script. Is there possible a way that I can have the line start and end at a different time?
Svara
sbtnc romellegr
@romellegr, While it is possible, it is a feature I would save for a new indicator.
Svara
When I use the price line feature, the day lines show today's high and lows and not the previous day high low. Is this correct? The same happens with weekly levels, when I activate the price line feature, it shows the current week high and lows, not the high and lows of the previous week. The regular levels are good, it is only the price line that is showing the current information. Is this how the indicator is supposed to work?
Svara
sbtnc gabx11
@gabx11, Thanks for raising this issue. It's definitely something to improve and so I will bring a bugfix within next release ;)
Svara