Using Range and List References

Top  Previous  Next

There are two ways of using range and list parameters.

 

For example, if you define a list parameter like this.

 

$p=list(1,3,6,7,8,8,9,12)

 

You can using the parameter $p in any expression. The parameter will be replaced with a randomly chosen value from the list. Randomly selected list and range parameters are central to FX Dynamic's functions.

 

Alternatively, you may wish to specify exactly which value you wish to use from the list. In this case you need to reference a particular value. To do this, use square brackets after the parameter name. For example...

 

$p[4] will use the 4th value from the list (in this case 7). This feature can be used to create "sets" of parameter values.