TimeIs

Top  Previous  Next

TimeIs(date, hour, minute, second, tolerance)

 

Parameters:

Date Variable = Date (cannot be changed)

Hour = hour of the day (integers from 0 - 23)

Minute = minute of the hour (integers from 0 - 59)

Second = second of the minute (integers from 0 - 59)

Tolerance = 0.25 second (default)

 

Returns true (1) on bar whose time is within the tolerance (in seconds) of the specified time.  The tolerance is required because times on bars are designated by floating point fractions, so that a precise comparison of times is not always possible due to the number precision issues of floating point fractions between the data feed and NeuroShell Trader. If you have bars which occur every one second or less use a tolerance of less than half the distance between bars (for second bars 0.25 should be good).