EduardoMattje

Yesterday's open, high, low and close

EduardoMattje 已更新   
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.
版本注释:
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.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?