ParamField
- creates price field parameter

Exploration / Indicators
(AFL 2.70)


SYNTAX ParamField(''name'', field = 3 )
RETURNS ARRAY
FUNCTION Allows to pick the Price field for the indicator (field which is used to calculate values of the indicator). Function returns the array defined by field parameter. Default value = 3 returns Close array. The possible values of field parameter are:
  • -1 - ParamField returns the values of the indicator that was inserted as a first one into the pane, or Close if no indicator was present
  • 0 - returns Open array
  • 1 - returns High array
  • 2 - returns Low array
  • 3 - returns Close array (default)
  • 4 - returns Average array = (H+L+C)/3
  • 5 - returns Volume array
  • 6 - returns Open Interest array
  • 7,8,9,.... - return values of indicators inserted into the pane.
EXAMPLE
SEE ALSO PARAM() function

References:

The ParamField function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference