Support

Equilla Formula Language

ToolGetExtLeft

Returns true if the specified tool is expanded into the past, false otherwise.

Inputs

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

Examples

Mark the high/low range of the current day
Input: Even( ColorLightGrey ), Odd( ColorLightGreen ); Variables: prevId( -2 ), color( Odd ), endVal, flags( ToolExtendRight + ToolExtendLeft + ToolDrawInBackground + ToolEngulfing ); If Date[1] <;>; Date Then Begin // Select the color for the new day If color = Even Then color = Odd Else color = Even; If prevId <;>; -2 Then Begin // Adjust the rectangle of the previous day If ToolGetExtRight( prevId ) Then ToolSetExtRight( prevId, False ); If ToolGetExtLeft( prevId ) Then ToolSetExtLeft( prevId, False ); End; // draw a new rectangle prevId = DrawRectangle( DateTime, High, DateTime, Low, color, color, flags ); End Else If prevId <;>; -2 Then Begin // adjust the high, low and end date/time of the current days rectangle If High >; ToolGetStartValue( prevId ) Then ToolSetStart( prevId, ToolGetStartDateTime( prevId ), High ); endVal = ToolGetEndValue( prevId ); If Low <; endVal Then endVal = Low; ToolSetEnd( prevId, DateTime, endVal ); End Else // draw the rectangle of the first day prevId = DrawRectangle( DateTime, High, DateTime, Low, color, color, flags );