Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

enum question

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

    enum question

    I have a question concerning enumeration.

    I have created enum and initialize them in myIndicator class.

    When I tried to change Category to GridCategory in the properties section it seems that they can't find the enum.

    If I put the enum outside myIndicator class and in the Ninja indicator workspace it works.

    I would prefer to keep enum in myIndicator class because :

    what would happen if I export the indicator and the enum in myIndicator comes in conflict with another custom indicator ?



    Thanks

    #2
    Hello,

    Thanks for the forum post.

    Unfortunately it would need to be external is the only way I have been able to get them to work.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Brett

      Thank you for your quick response

      But
      what would happen if I export the indicator and the enum in myIndicator comes in conflict with another custom indicator ?

      Thanks

      Comment


        #4
        Hello,

        You would have a compile error in this case/ would not be able to import.

        So make sure that when you export you give it a unique name.

        THanks.
        BrettNinjaTrader Product Management

        Comment


          #5
          Thank you very much Brett


          Bernard

          Comment


            #6
            Hello,

            Also, I got more clarification. It needs to be farther out then just indicator.name.

            Would want to follow the guidelines here:



            Let me know if I can be of further assistance.
            BrettNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CaptainJack, 05-29-2026, 05:09 AM
            0 responses
            173 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 05-29-2026, 12:02 AM
            0 responses
            91 views
            0 likes
            Last Post CaptainJack  
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            129 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            208 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            186 views
            0 likes
            Last Post CarlTrading  
            Working...
            X