NinjaScript > Language Reference > Drawing >

IVerticalLine

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Represents an interface that exposes information regarding a Vertical Line IDrawObject.

 

Methods and Properties

BarsAgo

An int value representing the number of bars ago of the draw object

Time

A DateTime structure representing the time of the draw object

Pen

The Pen object used to draw the object

 

 

Examples

protected override void OnBarUpdate()
{

    // Draws a Vertical Line
    IVerticalLine vLine = DrawVerticalLine("tag1", 10, Color.Black);

 

    // Print the number of bars ago the line is located at

    Print(vLine.BarsAgo);
}