Bars.GetOpen
Description
For reasons of compatibility, the following methods are available.
Bars.GetOpen(int index) outputs the open for the bars referenced with <index>.
Bars.GetHigh(int index) outputs the high for the bars referenced with <index>.
Bars.GetLow(int index) outputs the low for the bars referenced with <index>.
Bars.GetClose(int index) outputs the close for the bars referenced with <index>.
Bars.GetTime(int index) outputs the timestamp for the bars referenced with <index>.
Bars.GetVolume(int index) outputs the volume for the bars referenced with <index>.
Caution: The indexing will deviate from the Indexing, Bars normally used. Here, the indexing will begin with 0 for the oldest bar (on the left of the chart) and end with the newest bar on the right of the chart (=Bars.Count-1).
The indexing can easily be recalculated:
Parameter
int index (0 .. Bars.Count-1)
Return Value
Type double for GetOpen, GetHigh, GetLow, GetClose and GetVolume
Type DateTime for GetTime
Last updated