Hi,
I'm writing a scan script to identify stocks from WL that brokeout previous day high, but the script doesn't execute showing message: "Secondary period not allowed: Day."
input price = close;
# Previous day's high
def previousHigh = high(period = AggregationPeriod.DAY)[1];
# Condition: Current price is above previous day's high
plot scan = price > previousHigh;
i tried changing period to DAILY or DAY but no luck
I'm writing a scan script to identify stocks from WL that brokeout previous day high, but the script doesn't execute showing message: "Secondary period not allowed: Day."
input price = close;
# Previous day's high
def previousHigh = high(period = AggregationPeriod.DAY)[1];
# Condition: Current price is above previous day's high
plot scan = price > previousHigh;
i tried changing period to DAILY or DAY but no luck