Time
Previous Topic  Next Topic 

Definition

A collection of historical bar time stamp values.


Property Value

A TimeSeries type object.


Syntax

Time
Time[int barsAgo] (returns a DateTime structure)


Property Of

Custom Indicator, Custom Strategy


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");