×

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.

Difference between revisions of "IntraBarPersist" - MultiCharts
Open main menu

Difference between revisions of "IntraBarPersist"

(Created page with "Used in variable and array declaration statements, before a variable or array name, to specify that the value of the variable or array elements are to be updated on every tick...")
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
Used in variable and array declaration statements, before a variable or array name, to specify that the value of the variable or array elements are to be updated on every tick.  
 
Used in variable and array declaration statements, before a variable or array name, to specify that the value of the variable or array elements are to be updated on every tick.  
If [[IntraBarPersist]] is not specified, the value will be updated at the close of each bar.  
+
 
 +
If IntraBarPersist is not specified, the value will be updated at the close of each bar.  
 
   
 
   
==== Usage ====
+
== Usage ==
<syntaxhighlight>Declaration:[IntraBarPersist]Name(InitialValue1)</syntaxhighlight>  
+
<syntaxhighlight>Declaration: IntraBarPersist Name (InitialValue1)</syntaxhighlight>  
 
   
 
   
==== Example ====
+
== Declaration Examples ==
 
Declare Max as a numerical variable, updated on every tick, with the initial value of 100:  
 
Declare Max as a numerical variable, updated on every tick, with the initial value of 100:  
  
<syntaxhighlight>Variable:IntraBarPersist Max(100);</syntaxhighlight>  
+
<syntaxhighlight>Variable: IntraBarPersist Max(100);</syntaxhighlight>  
  
 
Declare Max_Price as a 24-element single-dimension numerical array, updated on every tick, and with data elements' initial values of 0:
 
Declare Max_Price as a 24-element single-dimension numerical array, updated on every tick, and with data elements' initial values of 0:
  
<syntaxhighlight>Array:IntraBarPersist Max_Price[23](0);</syntaxhighlight>  
+
<syntaxhighlight>Array: IntraBarPersist Max_Price[23](0);</syntaxhighlight>  
 
 
  
 +
IntraBarPersist can be challenging to learn. You can find test scripts to help understand it at this link.
 +
http://www.multicharts.com/discussion/viewtopic.php?f=5&t=6871
  
 
[[Category:Declaration]]
 
[[Category:Declaration]]

Latest revision as of 18:38, 11 August 2012

Used in variable and array declaration statements, before a variable or array name, to specify that the value of the variable or array elements are to be updated on every tick.

If IntraBarPersist is not specified, the value will be updated at the close of each bar.

Usage

Declaration: IntraBarPersist Name (InitialValue1)

Declaration Examples

Declare Max as a numerical variable, updated on every tick, with the initial value of 100:

Variable: IntraBarPersist Max(100);

Declare Max_Price as a 24-element single-dimension numerical array, updated on every tick, and with data elements' initial values of 0:

Array: IntraBarPersist Max_Price[23](0);

IntraBarPersist can be challenging to learn. You can find test scripts to help understand it at this link. http://www.multicharts.com/discussion/viewtopic.php?f=5&t=6871