Difference between revisions of "CurrentBar"
Jump to navigation
Jump to search
(Created page with "Returns the number of the current bar. Each bar, subsequent to the initial number of bars specified by the '''Maximum Bars Back''' setting, is assigned a sequential number; t...") |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Returns the number of the current bar. | Returns the number of the current bar. | ||
+ | |||
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. | 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. | ||
For example, if '''Maximum Bars Back''' is set to 20, the 21st bar will be assigned a number of 1. | For example, if '''Maximum Bars Back''' is set to 20, the 21st bar will be assigned a number of 1. | ||
− | + | == Usage == | |
− | + | <syntaxhighlight>CurrentBar</syntaxhighlight> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | == Notes == | ||
+ | * Also see the [[MaxBarsBack]] PowerLanguage word. | ||
+ | == Example == | ||
+ | <syntaxhighlight>CurrentBar</syntaxhighlight> | ||
+ | Will return the number of the current bar. | ||
[[Category:Data Information/General]] | [[Category:Data Information/General]] |
Latest revision as of 11:45, 19 February 2012
Returns the number of the current bar.
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.
For example, if Maximum Bars Back is set to 20, the 21st bar will be assigned a number of 1.
Usage
CurrentBar
Notes
- Also see the MaxBarsBack PowerLanguage word.
Example
CurrentBar
Will return the number of the current bar.