OPEN-SOURCE SCRIPT
Обновлено Yesterday's open, high, low and close

A very simple script to plot the yesterday's OHLC, to be used in an intraday graph.
There were other scripts like this, but their code was ugly, filthy, smelly, and WET, so I did this.
There were other scripts like this, but their code was ugly, filthy, smelly, and WET, so I did this.
Информация о релизе
You can now choose to hide historical values.Информация о релизе
Fixed the last bar bug that was displaying current day values. Very annoying.Информация о релизе
Wrong graph opsИнформация о релизе
Ok now the graph should be right and working.Информация о релизе
In Forex pairs, new data was being retrieved 1 candle before the closing of the day. Now it should be fixed.Информация о релизе
Now you can select which timeframe do you want to pull the data from, so you choose to plot the last week OHLC, or the last month.Информация о релизе
The script is now useful on daily and weekly charts, and you can set the period so that lines are shown on the chart. Информация о релизе
I changed the default style of the lines to be the regular lines instead of the step lines, so now, if you have selected the display current values options, the lines should be visible even at the start of the day.Информация о релизе
Now the prices should correctly be displayed in extended sessions, which required me to make a very big "gambiarra".I also added an option to show the prices for tomorrow, but it's a bit ugly, since PineScript doesn't let me use the "time_trading_day" of the next day.
Скрипт с открытым кодом
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.
Отказ от ответственности
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.
Скрипт с открытым кодом
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.
Отказ от ответственности
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.