Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawingToolTile source code conflicts with UserControlCollection documentation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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.

    Comment


      #3
      While adding a DrawingToolTile to the MarketAnalyzer doesn't make sense, other indicators that may include both plots and controls might. Thank you for the clarification.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      41 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X