NinjaScript > Language Reference > Drawing >
ISquare
Definition Represents an interface that exposes information regarding a Square IDrawObject.
Methods and Properties
BarsAgo
An int value representing the number of bars ago of the draw object
Color
A Color structure representing the color of the draw object
Time
A DateTime structure representing the time of the draw object
Y
An int value representing the y value of the draw object
Examples
protected override void OnBarUpdate() {
// Draws a square ISquare square = DrawSquare("tag1", true, 0, Low[0] - TickSize, Color.Red);
// Print the number of bars ago of the draw object
Print(square.BarsAgo); }