Seer logo - advanced backtesting for stock, futures and forex trading systems using using technical analysis indicators, charts, money management and position sizing
Functions by Category Functions by Alphabetical list

Hour([Optional Datetime])

Usable in an seer event objectUsable in an seer indicator objectUsable in an seer chart object

This function returns the number of hours of the current bar, or from the passed in datetime. The returned number is in 24 hour clock.

This function can be used in chart and indicator objects.

Examples:

  Hour; #returns the hour of the current bar
  Hour(Ago(DateTime,15)); #returns hour of the bar 15 bars ago

Note:

Because this function has an optional parameter, it is sometimes necessary to specify the parenthesis on the function when passing no parameters, for example use Hour() instead of Hour.

Related functions:

DateTime , Time , Second , Minute , Month , Year , DayOfWeek , DayOfMonth , DayOfYear , WeekOfYear , NewHour , NewDay , NewWeek , NewMonth , NewYear , Monday , Tuesday , Wednesday , Thursday , Friday , FormatDateTime , ValidateDateTime , AddDeltaDHMS , AddDeltaYM , DeltaDateTime

© 2011 seer trading systems ltd
feedback FAQ legal privacy