458
edits
No edit summary |
No edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
The number of bars is called '''''Maximum number of bars a study will reference''''', or '''''Maximum Bars Back'''''. | The number of bars is called '''''Maximum number of bars a study will reference''''', or '''''Maximum Bars Back'''''. | ||
<div style="background-color: #E3FBE5;">'''Note:''' SetMaxBarBack keyword can be used for indicators only. </div> | |||
== Usage == | == Usage == | ||
<syntaxhighlight>SetMaxBarsBack | <syntaxhighlight>SetMaxBarsBack (BarsBack)</syntaxhighlight>''' | ||
Where: | Where: ''<code>(BarsBack)</code>'' - numerical expression, specifying the number of bars back | ||
== Note == | == Note == | ||
''<code>(BarsBack)</code>'' can't be a negative value. | |||
== Example == | == Example == | ||
Set a value, indicating the Maximum Bars Back setting for the study to 50: | |||
<syntaxhighlight> | <syntaxhighlight>variables: SetMaxBarsBack(50);</syntaxhighlight> | ||
[[Category:Environment Information]] | [[Category:Environment Information]] |