Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing Tool Tile give an error message with a custom drawing tool

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

    Drawing Tool Tile give an error message with a custom drawing tool

    Hi Team,

    I have a custom drawing tool. When I apply this drawing tool with the Drawing Tool Tile I get an error message in the log tab:
    Error while loading Drawing tool NinjaTrader.NinjaScript.DrawingTools.******.Levels : System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(T Key key) at NinjaTrader.NinjaScript.Indicators.DrawingToolTile .CreateControl()

    Any idea how can be solved?


    #2
    Hello Protech,

    Thank you for the post.

    I wanted to clarify here, does this happen with all custom tools you have or just the single tool? I am trying to determine if this relates to the way your tool is coded or if this happens in general with any custom tool.

    I have one custom drawing object on my end that I tried on the chart with the TIle but did not see an error. Is there a specific set of steps that you follow to see that error?

    The error its self is not very helpful in explaining what may have happened other than there was some error with a collection.

    I look forward to being of further assistance.

    Comment


      #3
      Hi NinjaTrader_Jesse

      Only with this single tool. I have others and I don't get this error. I will try to investigate deeper. Thank you for your help.

      Comment


        #4
        Hello Protech,

        Thanks for confirming. If you are able to locate the syntax causing the error and are not sure why please post a sample and we can work from that to find a solution.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        607 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        353 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        561 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X