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. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?