♥ 0 |
Let’s say I am looking at an intraday chart on Tuesday morning. How would I reference Friday’s closing price?
Marked as spam
|
Please log in to post questions.
♥ 0 |
Let’s say I am looking at an intraday chart on Tuesday morning. How would I reference Friday’s closing price?
Marked as spam
|
Please log in to post questions.
Is there any way to incorporate …
def fri = (GetDayOfWeek(GetYYYYMMDD()) == 5);
to specifically reference friday’s close? On holidays like MLK day, there was no trading on Monday so by doing something like referencing the daily close price from two days ago will not always work. For example:
def tuesday_close_reference = close(period = AggregationPeriod.DAY)[2];
Referencing two closes ago will not work this week because that would refer to Thursday’s close price as there was no trading on Monday.
Can we directly reference the close of when (GetDayOfWeek(GetYYYYMMDD()) == 5) and have that value update every friday?