- creates a trigger (button) in the parameter dialog

Exploration / Indicators
(AFL 2.70)

SYNTAX ParamTrigger( ''Name'', ''Button text'')
FUNCTION Creates trigger (button) in the Parameter dialog.

If you place ParamTrigger in the indicator code it will create a "button" in Parameter dialog that can be pressed. Normally ParamTrigger will return zero (0) but when button in the param window is pressed then it will refresh the chart and ParamTrigger will return 1 (one) for this single execution (further refreshes will return zero, until the button is pressed again)

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

EXAMPLE trigger = ParamTrigger("Place Order", "Click here to place order");

if( trigger )
// your one-shot code here


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

More information:

See updated/extended version on-line.