IntraBarPersist

From MultiCharts
Revision as of 14:24, 19 January 2012 by 194.84.116.138 (talk) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)

Example

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);