ParamTrigger
|
Exploration / Indicators |
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) IMPORTANT: Parameter names and values must NOT contain non-printable characters (ASCII codes < 32). |
EXAMPLE | trigger = ParamTrigger("Place
Order", "Click here to
place order"); |
SEE ALSO |
The ParamTrigger function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.