+1 888 340 6572

Symbol currentbar: Difference between revisions

From MultiCharts
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Returns a numerical value indicating the number of the current bar plus '''Maximum Bars Back''' setting for the study
Returns a numerical value indicating the number of the current bar.


== Usage ==
== Usage ==
Line 6: Line 6:
== Notes ==
== Notes ==


Each bar, subsequent to the initial number of bars specified by the '''Maximum Bars Back''' setting, is assigned a sequential number; the initial bars specified by the setting are not numbered.  
The range of returned values is not limited by the '''MaxBarsBack''' setting. This keyword can return the value of any bar of the data series.
 
For example, if '''Maximum Bars Back''' is set to 20, the 21st bar will be assigned a number of 1.


== Example ==
== Example ==
<syntaxhighlight>Symbol_currentbar</syntaxhighlight>
<syntaxhighlight>Symbol_currentbar</syntaxhighlight>
Will return the number of the current bar plus '''Maximum Bars Back''' setting for the study.
Will return the number of the current bar.


[[Category:Data Information/General]]
[[Category:Data Information/General]]

Latest revision as of 12:30, 1 August 2024

Returns a numerical value indicating the number of the current bar.

Usage

Symbol_currentbar

Notes

The range of returned values is not limited by the MaxBarsBack setting. This keyword can return the value of any bar of the data series.

Example

Symbol_currentbar

Will return the number of the current bar.