EduardoMattje

Yesterday's open, high, low and close

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

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?