EduardoMattje

Yesterday's open, high, low and close

EduardoMattje Actualizado   
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.
Notas de prensa:
You can now choose to hide historical values.
Notas de prensa:
Fixed the last bar bug that was displaying current day values. Very annoying.
Notas de prensa:
Wrong graph ops
Notas de prensa:
Ok now the graph should be right and working.
Notas de prensa:
In Forex pairs, new data was being retrieved 1 candle before the closing of the day. Now it should be fixed.
Notas de prensa:
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.
Notas de prensa:
The script is now useful on daily and weekly charts, and you can set the period so that lines are shown on the chart.
Notas de prensa:
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.
Notas de prensa:
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.
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?