DrawingTool

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Drawing Tool > ChartAnchor >

DrawingTool

Previous page Return to chapter overview Next page

Definition

The DrawingTool object which owns a chart anchor.

 

Property Value

A IDrawingTool object representing the owner of the chart anchor

 

Syntax

<ChartAnchor>.DrawingTool

 

Examples

ns

protected override void OnStateChange()
{
    if (State == State.SetDefaults)

    {  

Name = "SampleDrawingTool";      

MyAnchor = new ChartAnchor();

MyAnchor.DrawingTool = this; //NinjaTrader.NinjaScript.DrawingTools.SampleDrawingTool

    }

    else if (State == State.Configure)

    {

 

    }
}