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 atime=paramtime(................... if (now(4)==atime) .............
trade_time = ParamTime( " Trade End", "09:59:59" ) ; if (lastvalue(now(4)==trade_time and (buy or sell))) {.................}