The number of bars is called '''''Maximum number of bars a study will reference''''', or '''''Maximum Bars Back'''''.
== 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]]