×

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

122 bytes added, 22:03, 28 June 2012
no edit summary
Returns Sets a numerical value indicating the Maximum Bars Back setting for the study.
All studies based on past data use a certain number of bars for their calculations.  The number of bars is called '''''Maximum number of bars a study will reference''''', or '''''Maximum Bars Back, and can be found in the settings of an indicator or signal'''''.
== Usage ==
<syntaxhighlight>MaxBarsBackSetMaxBarsBack (BarsBack)</syntaxhighlight> ''' Where: ''<code>(BarsBack)</code>'' - numerical expression, specifying the number of bars back == Note == ''<code>(BarsBack)</code>'' 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