IsAttachedToNinjaScript

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Drawing Tool >

IsAttachedToNinjaScript

Previous page Return to chapter overview Next page

Definition

Indicates if the drawing tool is currently attached to a NinjaScript object (such an indicator or a strategy).

 

Property Value

A bool value which when true if the drawing tool is attached to a NinjaScript object; otherwise false.  This property is read-only.

 

Syntax

IsAttachedToNinjaScript

 

Examples

ns

public override void OnMouseMove(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, ChartAnchor dataPoint)
{  
  // do not interact if drawn by an indicator or strategy
  if (IsAttachedToNinjaScript)
    return;
}