Hi,
I am having trouble getting for the last bar open and close price at the closing session (4pm est) , specially on Mondays
I am using
def day = GetDay();
def lastDay = GetLastDay();
def isToday = If(day == lastDay, 1, 0);
but not always work for SPX, ES, SPY with and without extended hours on
Today at 3pm I would like to get yesterday's values
Today at 5pm I would like to get today's values
Tomorrow at 8am I would like to get yesterday's values
Any help is appreciated
I am having trouble getting for the last bar open and close price at the closing session (4pm est) , specially on Mondays
I am using
def day = GetDay();
def lastDay = GetLastDay();
def isToday = If(day == lastDay, 1, 0);
but not always work for SPX, ES, SPY with and without extended hours on
Today at 3pm I would like to get yesterday's values
Today at 5pm I would like to get today's values
Tomorrow at 8am I would like to get yesterday's values
Any help is appreciated