Value1-99 (Reserved Word)
This reserved word refers to pre-declared variables in EasyLanguage that can be used to store a value from a calculation or an expression.
A variable is a name that represents a stored value that was assigned from another value or calculation so that you can reference it later in your code. In EasyLanguage, you can think of variables as storage containers that hold a value.
EasyLanguage provides you with 100 pre-declared numerical variables (Value0 through Value 99) and 100 pre-declared true/false variables (Condition0 through Condition99). A variable declaration is not necessary for these variables to be used in your code.
Remarks
-
Pre-declared numeric variables can hold double-precision floating-point values.
-
Pre-declared variables are generally used during the early development stage of a study. They are replaced with descriptively named, user-declared, variables in the final version of the study.
-
Pre-declared variables are aliased to the data stream to which the study is applied. Aliasing can be important when developing studies that use multiple data streams. If a study is applied to Data1, for example, offsets of pre-declared variables will be measured in Data1 bars, regardless of the value assigned to the pre-declared variable. Code for the study might assign the value of Close Data2 to Value1. Value1[3] will refer to Value1's value as of three Data1 bars ago, not three Data2 bars ago. Variables that are declared by the code (not pre-declared variables) can be aliased to the data stream of your choice (see variable).
-
Pre-declared variables are not intrabarpersist.