search Nothing found
Main Algotrading documentation

Access to quote history

This section describes methods for accessing the quotes' history. You can get an array of quotes with bar parameters (Open, High, Low, Close, Volume, Time), as well as refer to a separate bar and get the parameter you need into a variable. To get the value of the parameter of a specific bar, it is necessary to pass the shift relative to the current bar to the function. In this case, if shift = 0, then this is the current bar (parameters of the current candlestick on the chart), if shift = 1, then this is the previous bar (values of the previous candlestick), etc.