images/contents.gifimages/index.gifimages/prev1.gifimages/next1.gif

Subscripting

The program enables you to use values from past bars in a formula. To use data from past bars in a formula, you must identify which bar, or period, you want to use. You include this information in a formula by subscripting (enclosing a positive number in brackets ([n]) one or more instrument constants, variables, or month specifiers. The syntax for subscripting is:

images/aspen00000281.gif

As the syntax indicates, you can subscript instrument constants (an instrument symbol, i.e., SPZ5), instrument variables (an instrument stated as a variable, i.e., $1), and month specifiers (an instrument symbol that uses a pound sign macro, i.e., SP#1).