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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      597 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      343 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      556 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      555 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X