Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error when Compiling "The namespace 'NinjaTrader.Strategy' already contains a definit

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

    Error when Compiling "The namespace 'NinjaTrader.Strategy' already contains a definit

    I am just compiling a new strategy and am getting the following error "The namespace 'NinjaTrader.Strategy' already contains a definition for 'DIVEMA'"

    I don't know why this is happening as there are no other strategies with this name??
    Last edited by GKonheiser; 06-11-2012, 02:05 AM.

    #2
    Originally posted by GKonheiser View Post
    I am just compiling a new strategy and am getting the following error "The namespace 'NinjaTrader.Strategy' already contains a definition for 'DIVEMA'"

    I don't know why this is happening as there are no other strategies with this name??
    Just from the name, that looks suspiciously like my favorite bugbear: pollution of the global namespace by enum declarations clashing.

    Use the forum search on the keywords: global, namespace, pollute.

    That should provide enough nightmares for one night's reading.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    637 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    366 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    571 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X