Hi guys, I am currently testing out a study we created. I am trying to turn it into a scan but having an issue with an input. First, is it possible to create a scan that references 5-minute data and also daily data from today and yesterday? As an indicator, it works. Here is the study as is.
Code:
def aggD = AggregationPeriod.DAY;
def agg5 = AggregationPeriod.FIVE_MIN;
def CloseFive = close(period = agg5);
def OpenD = open(period = aggD);
def HighD = high(period = aggD);
def LowD = low(period = aggD);
def pRange = HighD[1] - LowD[1];
plot condition1 = CloseFive[0] > OpenD[0] + (.9 * pRange);