Hi, can someone help to rewrite the ATR Code not using the "AggregationPeriod.DAY" in the script but it will show the same daily ATR value in the chart since the scanner not allowed to scan the study in the aggregationPeriod. min. Thank you.
plot ATR = MovingAverage(averageType, TrueRange(high(period = AggregationPeriod.DAY), close(period = AggregationPeriod.DAY), low(period = AggregationPeriod.DAY)), length);
plot ATR = MovingAverage(averageType, TrueRange(high(period = AggregationPeriod.DAY), close(period = AggregationPeriod.DAY), low(period = AggregationPeriod.DAY)), length);