NinjaScript > Language Reference > Drawing >
IArc
Definition Represents an interface that exposes information regarding an Arc IDrawObject.
Methods and Properties
StartBarsAgo
An int value representing the number of bars ago of the starting point
StartTime
A DateTime structure representing the time of the starting point
StartY
A double value representing the y value of the starting point
EndBarsAgo
An int value representing the number of bars ago of the ending point
EndTime
A DateTime structure representing the time of the ending point
EndY
A double value representing the y value of the ending point
Pen
The Pen object used to draw the object
Examples
protected override void OnBarUpdate() {
// Draws an arc IArc arc = DrawArc("tag1", false, 10, 1000, 0, 1001, Color.LimeGreen, DashStyle.Dot, 2);
// Print the number of bars ago the starting point is located at
Print(arc.StartBarsAgo); }