Support

Equilla Formula Language

ToolGetStartTime

Returns the start time specified for a tool.

Inputs

ToolID
Numeric: A tool identifier that has been previously returned by one of the DrawTrendline or DrawRectangle functions.

Remarks

Returns the integer representation of the start time specified for the tool.

Examples

Show the current price as horizontal line over the last 10 bars
Variables: id; id = ToolGetFirst(); If id = -2 Then // Create the trendline DrawTrendline( DateTime[10], Close, DateTime, Close ) Else If ToolGetStartDate( id ) <;>; Date[10] Or ToolGetStartTime( id ) <;>; Time[10] Then Begin // Shift the trendline ToolSetStart( id, DateTime[10], Close ); ToolSetEnd( id, DateTime, Close ); End Else Begin // Update the value of the trendline ToolSetStart( id, ToolGetStartDateTime( id ), Close ); ToolSetEnd( id, DateTime, Close ); End;