Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Is it possible to draw objects on chart through AddOn?
Collapse
X
-
Is it possible to draw objects on chart through AddOn?
I want to add some support/resist line, fibonacci etc. to charts through Addon, I know indicator can draw objects on chart, but I am not sure how to do it through AddOn...yes, I know how to get the ChartControl, but what's next step? -
Hello,
Thank you for the question.
There are no documented ways to add Indicators or Drawing objects to a chart from an addon currently.
One way to add DrawingObjects specifically could be the following two items. One is a way to enact the Drawing "pen" tool for the object of your choice. the other would be in the case you have the instance of an indicator, you could supply it as the Base to draw an object like you would using NinjaScript.
Code:ChartControl.TryStartDrawing("NinjaTrader.NinjaScript.DrawingTools.ArrowDown");
The second would be to call the Static Draw methods like you would from an indicator, again this assumes you have a instance to the Indicator to provide a base:
Code:NinjaTrader.NinjaScript.DrawingTools.Draw.ArrowDown(indicators_instance, "test", true, 0, 2000, System.Windows.Media.Brushes.Red);
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by yertle, Yesterday, 08:38 AM
|
7 responses
28 views
0 likes
|
Last Post
by yertle
Today, 12:15 AM
|
||
Started by bmartz, 03-12-2024, 06:12 AM
|
2 responses
19 views
0 likes
|
Last Post
by bmartz
Today, 12:11 AM
|
||
Started by funk10101, Today, 12:02 AM
|
0 responses
3 views
0 likes
|
Last Post
by funk10101
Today, 12:02 AM
|
||
Started by gravdigaz6, Yesterday, 11:40 PM
|
1 response
8 views
0 likes
|
Last Post Yesterday, 11:49 PM | ||
Started by MarianApalaghiei, Yesterday, 10:49 PM
|
3 responses
10 views
0 likes
|
Last Post Yesterday, 11:33 PM |
Comment