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

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