Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT custom indicator name collision

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

    NT custom indicator name collision

    I just found that when I try to compile a custom indicator, NT cannot compile its own built-in indicators! After considerable puzzlement, I noticed that the error messages all complained about graphics and Rectangle. As it happened, I had just created a custom indicator called Rectangle (an unfortunate choice of name), and the presence of this class broke the compilation of the built-in indicators (my Rectangle indicator was created by the wizard, and not modified). I will rename it, but I feel this is a trap that many people could fall into, and there is no way to know what names could cause this kind of conflict.

    This problem is easy to reproduce: just create (e.g. by the wizard) a custom indicator named Rectangle, then try to compile.

    I think you should take some action to mitigate this problem in the future. Probably custom indicators should have their own namespace to avoid these collisions. At least, put a warning in the manual, with a list of reserved names.

    #2
    Splat, thank you for the suggestion - I've passed it along.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Splat, we thank you for the insightful suggestion for future enhancement of the NinjaTrader platform - we've assigned tracking # 880 to it.

      Thanks again,

      Comment


        #4
        My pleasure!

        Comment

        Latest Posts

        Collapse

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