donaldhook
New member
I am writing a scan and want to see if this is correct in getting the current open and close of the current 5 minute candle.
def open_current = open(period = AggregationPeriod.FIVE_MIN)[0];
def close_current = close(period= AggregationPeriod.FIVE_MIN)[0];
The aggregation on the scan is 5 minutes.
def open_current = open(period = AggregationPeriod.FIVE_MIN)[0];
def close_current = close(period= AggregationPeriod.FIVE_MIN)[0];
The aggregation on the scan is 5 minutes.