+1 888 340 6572

SetMaxBarsBack: Difference between revisions

From MultiCharts
No edit summary
No edit summary
 
(One intermediate revision by one other user 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 (BarsBack)</syntaxhighlight>'''
<syntaxhighlight>SetMaxBarsBack (BarsBack)</syntaxhighlight>'''
Line 17: Line 18:
Set a value, indicating the Maximum Bars Back setting for the study to 50:
Set a value, indicating the Maximum Bars Back setting for the study to 50:


<syntaxhighlight>vars: SetMaxBarsBack(50);</syntaxhighlight>
<syntaxhighlight>variables: SetMaxBarsBack(50);</syntaxhighlight>


[[Category:Environment Information]]
[[Category:Environment Information]]

Latest revision as of 18:02, 7 February 2024

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.

Note: SetMaxBarBack keyword can be used for indicators only.

Usage

SetMaxBarsBack (BarsBack)

Where: (BarsBack) - numerical expression, specifying the number of bars back

Note

(BarsBack) can't be a negative value.

Example

Set a value, indicating the Maximum Bars Back setting for the study to 50:

variables: SetMaxBarsBack(50);