Param
|
Exploration / Indicators |
SYNTAX | Param( ''name'', defaultval, min, max, step, sincr = 0 ) |
RETURNS | NUMBER |
FUNCTION | Adds a new user-definable parameter, which will be accessible via Parameters dialog : right click over chart pane and select "Parameters" or press Ctrl+R allows to change chart parameters - changes are reflected immediatelly.
WARNING: default/min/max/step parameters have to be CONSTANT numbers. This is because these values are cached and are not re-read during subsequent formula evaluations. IMPORTANT: Parameter names and values must NOT contain non-printable characters (ASCII codes < 32). |
EXAMPLE | Sample code 1:
|
SEE ALSO | PARAMCOLOR() function , PARAMSTR() function PARAMCOLOR() function , ParamTime() function , ParamDate() function |
Tomasz Janeczko tj --at-- amibroker.com 2006-02-19 06:18:23 | Note that Parameters are INDEPENDENT for each chart pane and for Automatic Analysis window. In Automatic Analysis window parameters can be modified using "Parameters" button and they are independent from ones you use for any chart. |
Tomasz Janeczko tj --at-- amibroker.com 2006-02-19 06:19:59 | To change the parameters for the indicator, please click with RIGHT mouse button over chart pane and select "Parameters" from the menu. |
The Param function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.