Further, the code in the documentation assumes the ChartControl will exist once we reach State.Historical? Is this always true? If an indicator is added to the MarketAnalyzer I would think it would not have a ChartControl and code like this would fail.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
DrawingToolTile source code conflicts with UserControlCollection documentation
Collapse
X
-
DrawingToolTile source code conflicts with UserControlCollection documentation
Reviewing the documentation found here https://ninjatrader.com/support/help...collection.htm I see the recommended method for modifying the UserControlCollection is to use ChartControl.Dispatcher.InvokeAsync. When I look at the code for the DrawingToolTile in @DrawingToolTile.cs it doesn't use the ChartControl.Dispatcher.Invoke and it also accesses the UserControlCollection before State.Historical. Why is the code in DrawingToolTile.cs contradicting the code in the documentation?
Further, the code in the documentation assumes the ChartControl will exist once we reach State.Historical? Is this always true? If an indicator is added to the MarketAnalyzer I would think it would not have a ChartControl and code like this would fail.Tags: None
-
Hello ntbone,
Thanks for your post.
I'm currently awaiting response from Product Management and Development regarding the decision to use State.Configure in the DrawingToolTile.
Once I hear back, I will provide a complete response.
EDIT: Product Management and Development had a look and changes will be made in the DrawingToolTile indicator so it reflects the Help Guide.
The UserControlCollection Help Guide mentions use for a chart and the code provided assumes the code will be applied to a chart. You are correct that ChartControl would be null in the case of adding to the Market Analyzer.
We look forward to assisting.Last edited by NinjaTrader_Jim; 02-12-2021, 10:09 AM.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
345 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment