Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

compilation results in error ?????

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

    compilation results in error ?????

    all of a sudden indicator [call it "indicator xxxx"] compilation results in error
    "The namespace 'NinjaTraderIndicator' already contains a definition for 'xxxx' "

    I am guessing, and hoping, that all I need do is somehow do some housekeeping on the namespace. Please give me some direction about what to do because I don't have a clue about what is going on.

    #2
    Originally posted by joemiller View Post
    all of a sudden indicator [call it "indicator xxxx"] compilation results in error
    "The namespace 'NinjaTraderIndicator' already contains a definition for 'xxxx' "

    I am guessing, and hoping, that all I need do is somehow do some housekeeping on the namespace. Please give me some direction about what to do because I don't have a clue about what is going on.
    Sounds like you defined some stuff in the Global namespace.
    1. Go through all the files that you wrote, find where you have the clash,
    2. Resolve it by deleting all but one definition, and then
    3. Consider not polluting the Global namespace anymore.

    Comment


      #3
      thanks

      I don't understand a word of your response but I will work on it because it is the best advise I have so far. not only will I consider not polluting the Global namespace, I will consider not making any mistakes anymore... anywhere, anytime. wish I had been the recipient of that wisdom earlier in life.

      Comment


        #4
        Hello joemiller,

        Thank you for your post.

        It is likely a file that is named the same as another or there is a copy of a file in the (My) Documents\NinjaTrader 7\bin\Custom folder in either the Custom folder itself, the Indicator folder, Strategy folder or possibly Type or Market Analyzer.

        Run through these directories to ensure you have no conflicts.

        Comment


          #5
          you nailed it dead center Patrick [ie] "there is a copy of a file in the (My) Documents\NinjaTrader 7\bin\Custom folder"

          turns out I am the one who saved it there [too smart by half] thinking that there would be no problem because it [obviously] had a different name.

          thanks to both you guys [Patrick and Koganam]

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          117 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          166 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          85 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          130 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          88 views
          0 likes
          Last Post PaulMohn  
          Working...
          X