×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

SetMaxBarsBack

13 bytes added, 7 February
no edit summary
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 ==
<syntaxhighlight>SetMaxBarsBack</syntaxhighlight> '''<syntaxhighlight>(BarsBack)</syntaxhighlight>'''
Where: '''<syntaxhighlightcode>(BarsBack)</syntaxhighlightcode>''' - numerical expression, specifying the number of bars back
== Note ==
'''<syntaxhighlightcode>(BarsBack)</syntaxhighlightcode>''' can't be a negative value.
== Example ==
Assign Set a value, indicating the Maximum Bars Back setting for the study, to Value1 variable50:
<syntaxhighlight>Value1 = MaxBarsBackvariables: SetMaxBarsBack(50);</syntaxhighlight>
[[Category:Environment Information]]

Navigation menu