IntraBarPersist: Difference between revisions
From MultiCharts
m
no edit summary
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138) |
mNo edit summary |
||
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 | |||
If IntraBarPersist is not specified, the value will be updated at the close of each bar. | |||
== Usage == | |||
<syntaxhighlight>Declaration: | <syntaxhighlight>Declaration: IntraBarPersist Name (InitialValue1)</syntaxhighlight> | ||
== | == 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> | ||
[[Category:Declaration]] | [[Category:Declaration]] |