Time

View as Markdown

Definition

A collection of historical bar time stamp values.

Property Value

An ISeries<datetime> object.

Syntax

Time

Returns a DateTime structure

Time[int barsAgo]

Examples

1// Prints the current bar time stamp
2Print(Time[0].ToString());
3
4//Checks if current time is greater than the bar time stamp
5if (DateTime.Now.Ticks > Time[0].Ticks)
6 Print("Do something");