NinjaScript > Language Reference > Drawing >

IArrowDown

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Represents an interface that exposes information regarding an Arrow Down 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 an Arrow Down
    IArrowDown arrow = DrawArrowDown("tag1", true, 0, High[0] + TickSize, Color.Red);

 

    // Print the number of bars ago of the draw object

    Print(arrow.BarsAgo);
}