IntraBarPersist

用在变量和数组的声明语句中,在变量或数组名称之前,用来指定变量或数组元素的值依照每tick更新。

如果没有指定 IntraBarPersist ,变量或数组元素值将在每根Bar的收盘时更新。

用法

Declaration:[IntraBarPersist]Name(InitialValue1)

范例

声明一个数值型变量Max,按照每tick更新,初始值为100:

Variable:IntraBarPersist Max(100);

声明一个含24个元素的一维数值型数组Max_Price,元素值按照每tick更新,元素初始值为0:

Array:IntraBarPersist Max_Price[23](0);