ParamToggle
- create Yes/No parameter

Exploration / Indicators
(AmiBroker 4.70)


SYNTAX ParamToggle(''name'',''values'',defaultval=0 )
RETURNS NUMBER
FUNCTION Function that allows to use boolean (Yes/No) parameters.

  • ''name'' - the name of the parameter
  • ''values'' - parameter values (separated with | character, e.g. "No|Yes" - first string represents false value and second string represents true value)
  • defaultval - default value of the parameter

IMPORTANT: Parameter names and values must NOT contain non-printable characters (ASCII codes < 32).

EXAMPLE
SEE ALSO PARAM() function , ParamTrigger() function

References:

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

More information:

See updated/extended version on-line.