YEAR

Syntax

AggregationPeriod.YEAR

Description

The AggregationPeriod.YEAR constant can be used with some functions to make the data aggregation period equal to one calendar year (31,536,000,000 milliseconds). 

Example

def agg = AggregationPeriod.YEAR; 

plot data = close(period = agg);

The above script plots the close price aggregated on a yearly basis.

See also: GetAggregationPeriod function in the Others section.