ParamTrigger
- creates a trigger (button) in the parameter dialog

Exploration / Indicators
(AFL 2.70)


SYNTAX ParamTrigger( ''Name'', ''Button text'')
RETURNS NUMBER
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)

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

if( trigger )
{
// your one-shot code here
}
SEE ALSO

References:

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

More information:

Updated on-line reference