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

Grid.addSymbol()

Top  Previous  Next

Grid.addSymbol( aSymbol: String; aInterval: String; aStart: String; aEnd: String );

 

Used to request data from a specific symbol and bar interval. Valid intervals are:

 

D = Daily

W = Weekly

M = Monthly

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

 

The addSymbol() procedure must be used if any of your study formulas or data streams will be accessing data from another symbol via a symInterval() call. There must be one addSymbol() call for each external symbol being referenced by either the data streams or study formulas.

 

 

Note: The addSymbol() function can only be called from within the Initialize procedure of a script. Session times must either both be '0:00' to specify a 24-hour session or the session end time must be after the session start time.

 

 

Parameters

 

aSymbol

string value - the symbol requested.

aInterval

string value - the bar interval requested.

aStart

string value - session start time

aEnd

string value - session end time

 

addSymbol

 

See also:

 

Grid.addInterval()