ParamTime
- add user user-definable time parameter

Exploration / Indicators
(AmiBroker 4.60)


SYNTAX ParamTime( ''Name'', ''Default time'', format = 0 );
RETURNS NUMBER or STRING
FUNCTION Adds a new user-definable time 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.

  • "name" - defines parameter name that will be displayed in the parameters dialog
  • "default time" - is a string holding time in any any format: HH:MM:SS, HH:MM, etc.
  • format - defines return value format, allowable values are:
    0 - return value is a NUMBER and holds TimeNum. Ie: 133515 for 13:35:15
    1 - return value is a STRING formatted holding time according to your windows regional settings

WARNING: default parameter has to be CONSTANT. 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 start = ParamTime( "Start Time", "09:30" );
SEE ALSO PARAM() function , PARAMCOLOR() function , ParamDate() function , PARAMSTR() function

References:

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

More information:

See updated/extended version on-line.