DrawingTool

View as Markdown

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

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 {
5 Name = "SampleDrawingTool";
6 MyAnchor = new ChartAnchor();
7 MyAnchor.DrawingTool = this; // NinjaTrader.NinjaScript.DrawingTools.SampleDrawingTool
8 }
9 else if (State == State.Configure)
10 {
11
12 }
13}