Time Compare (TCmp)

This function is available on the Add Study window and in the Formula Toolbox.

The Time Compare function compares a user-selected time (for intraday bars) or date (for daily or longer bars) to the time or date where the vertical cursor is positioned. The study reports values for six possibilities. It returns a 1 if the choice is true and a zero if it is false. The six possibilities are:

      Time EQ: The time represented by the vertical cursor position is the same as the user-selected time.

      Time NE: The time represented by the vertical cursor position is not the same as the user-selected time.

      Time GT: The time represented by the vertical cursor position is later than the user-selected time.

      Time GE: The time represented by the vertical cursor position is later or the same as the user-selected time.

      Time LT: The time represented by the vertical cursor position is earlier than the user-selected time.

      Time LE: The time represented by the vertical cursor position is earlier or the same as the user-selected time.

 

Parameter

Description

Display

Opens a sub-window with display properties:

      Color = Select a line color.

      Weight = Type a value for line thickness.

      Display = Select line style: line, histogram, or dash.

Date

Selects the date for the comparison for daily or longer bars.

Time

Selects the time for the comparison for bars shorter than daily.