Defines aggregation period equal to fifteen minutes (900,000 milliseconds).
def agg = AggregationPeriod.FIFTEEN_MIN;
plot data = close(period = agg);
This example script draws the Close price plot with aggregation period equal to fifteen minutes. Note that aggregation period used in this example cannot be less than chart aggregation period.