Navigation: Function Reference > User Script Functions > Grid.addInterval()

Grid.addInterval()

Top  Previous  Next

Grid.addInterval( aInterval: String );

 

Used to request a bar interval other than the bar interval being used by the driving symbol. aInterval is a string containing the requested bar interval. Valid intervals are:

 

D = Daily

W = Weekly

M = Monthly

X = where X is any integer value (intraday interval)

 

The addInterval() procedure must be used if any of your study formulas or data streams will be accessing data from another bar interval. There must be one addInterval() call for each bar interval being referenced by either the data streams or study formulas.

 

 

Note: The addInterval() function can only be called from within the Initialize procedure of a script.

 

 

Parameters

 

aInterval

string value - the bar interval requested.

 

setColumnTitle

 

See also:

 

Grid.addSymbol()