Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Enum can be compiled in 6.0, but not in 6.5

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

    Custom Enum can be compiled in 6.0, but not in 6.5

    I define an enum used by my custom indicator. The code compiles and runs in NT 6.0, but it does not compile in NT 6.5. The error is essentially the definition of the enum cannot be found. Is this a bug in NT 6.5? Thanks!

    #2
    No this is not a bug a problem with your code somewhere, likely you are using an enum in one of your indicator but nowhere have you defined this enum.
    RayNinjaTrader Customer Service

    Comment


      #3
      What I found is that the enum must be defined outside any namespace (or in the global namespace to be exact) for the code to compile in NT 6.5. In contrast, it can be defined in the NinjaTrader.Indicator namespace in NT 6.0.

      Comment


        #4
        The enum should be done in the global namespace.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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