iBars
Returns the total number of bars available in the specified symbol's price history.
Syntax
Parameters
Symbol
: The symbol to get data forTimeFrame
: The timeframe of the data (in minutes)
Return Value
Returns a number
representing the total count of available bars.
Description
The iBars
method returns the total number of bars available in the price history for a given symbol and timeframe. This count includes all bars from the oldest available bar up to the current (most recent) bar. The method is useful for determining the size of the historical data and for implementing lookback periods in technical analysis.
Example
Last updated