IDrawingTool
<< Click to Display Table of Contents >> IDrawingTool |
Represents an interface that exposes information regarding a drawn chart object.
IDrawingTool Properties are standard properties that are shared by all drawing tools.
Note: For implementing a custom Drawing Tool project, please see the DrawingTools section of this help guide. |
Anchors |
A read-only collection of all of the IDrawingTool's ChartAnchors |
AttachedTo |
An enum determining where the drawing tool is attached.
Possible values are: •AttachedToType.Bars, •AttachedToType.GlobalInstrument, •AttachedToType.Indicator, •AttachedToType.Strategy |
DrawingState |
The current DrawingState of the drawing tool |
DrawnBy |
An object value indicating which type of NinjaScript the drawing tool originated (null if user drawn) |
IsAttachedToNinjaScript |
A read-only bool indicating if the drawing tool is attached to an indicator or strategy |
IgnoresUserInput |
A read-only bool determining if the drawing tool can be interacted with by the user. |
IsGlobalDrawingTool |
A bool determining if the drawing tool displays on all charts of the instrument |
IsLocked |
A bool determining if the drawing tool can be moved |
IsSeparateZOrder |
A bool determining if the drawing tool will reside on a different ZOrder from the NinjaScript object it was drawn |
IsUserDrawn |
A read-only bool indicating if drawing tool was manually drawn by a user |
PanelIndex |
An int value representing the panel the drawing tool resides |
SupportsAlerts |
A read-only bool indicating if the drawing tool can be used for creating an alert |
Tag |
A string value representing the unique ID of the draw object. (Global draw objects will have an "@" added as a prefix to the string) |
ZOrderType |
An enum indicating the order in which the drawing tool will be drawn.
Possible values are: •DrawingToolZOrder.Normal, •DrawingToolZOrder.AlwaysDrawnFirst, •DrawingToolZOrder.AlwaysDrawnLast |
<ChartAnchor>.BarsAgo |
An int representing the "barsAgo" value that was passed to the Draw method
Note: This value will NOT be set for objects drawn manually |
<ChartAnchor>.DisplayName |
A string representing name of the DrawingTool's chart anchor that is displaying on the UI |
<ChartAnchor>.DrawingTool |
The IDrawingTool object which created the DrawingTool's chart anchor object |
<ChartAnchor>.DrawnOnBar |
An int representing the CurrentBar value that the DrawingTool's chart anchor was drawn |
<ChartAnchor>.IsNinjaScriptDrawn |
A bool indicating the object was drawn programmatically |
<ChartAnchor>.Price |
A double representing the price the DrawingTool's chart anchor was drawn |
<ChartAnchor>.SlotIndex |
A double representing the DrawingTool's chart anchor index value the anchor was drawn |
<ChartAnchor>.Time |
A DateTime representing the time value the DrawingTool's chart anchor was drawn |
Text myText; |