Difference between revisions of "SetMaxBarsBack"

From MultiCharts
Jump to navigation Jump to search
Line 1: Line 1:
Returns a numerical value indicating the Maximum Bars Back setting for the study.  
+
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'''''.
  
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 ==
 
== Usage ==
<syntaxhighlight>MaxBarsBack</syntaxhighlight>  
+
<syntaxhighlight>SetMaxBarsBack</syntaxhighlight> '''<syntaxhighlight>(BarsBack)</syntaxhighlight>'''
 +
 
 +
Where: '''<syntaxhighlight>(BarsBack)</syntaxhighlight>''' - numerical expression, specifying the number of bars back
 +
 
 +
== Note ==
 +
 
 +
'''<syntaxhighlight>(BarsBack)</syntaxhighlight>''' can't be a negative value.
 
   
 
   
 
== Example ==
 
== Example ==

Revision as of 11:41, 24 February 2012

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.


Usage

SetMaxBarsBack
(BarsBack)

Where:

(BarsBack)

- numerical expression, specifying the number of bars back

Note

(BarsBack)

can't be a negative value.

Example

Assign a value, indicating the Maximum Bars Back setting for the study, to Value1 variable:

Value1 = MaxBarsBack;