CountedBars
Returns the number of bars that have already been calculated in previous calls.
Syntax
Parameters
This method does not take any parameters.
Return Value
Returns a number
representing the count of bars that have already been calculated.
Description
The Counted_bars
method returns the number of bars that have already been processed in previous calls to the indicator's calculation function. This is useful for optimization, as it allows the indicator to only calculate values for new bars rather than recalculating all bars.
Example
Last updated