NinjaScript > Language Reference > Drawing >
IDot
Definition Represents an interface that exposes information regarding a Dot 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 dot IDot dot = DrawDot("tag1", true, 0, Low[0] - TickSize, Color.Red);
// Print the number of bars ago of the draw object
Print(dot.BarsAgo); }