Hello! I'm working with the code below to scan for stocks whose price close + 12¢ on a 3 minute chart is below the high of day (excluding extended hours), but I can't get it to work. When I add high(period = "DAY") I run into the "secondary period not allowed" issue, otherwise the code as is doesn't generate accurate results. What would work instead? Thanks in advance for the help.
def currentPrice = close;
def highOfDay = high;
def condition = currentPrice + 0.12 < highOfDay;
plot scan = condition;
def currentPrice = close;
def highOfDay = high;
def condition = currentPrice + 0.12 < highOfDay;
plot scan = condition;