NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-11-2012, 01:49 AM   #1
GKonheiser
Senior Member
 
Join Date: Nov 2010
Posts: 101
Thanks: 40
Thanked 4 times in 4 posts
Default 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 at 02:05 AM.
GKonheiser is offline  
Reply With Quote
Old 06-11-2012, 06:43 PM   #2
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,219
Thanks: 24
Thanked 1,231 times in 1,002 posts
Send a message via Skype™ to koganam
Default

Quote:
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.
koganam is offline  
Reply With Quote
Reply

Tags
compilation errors

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The namespace `NinjaTrader.Strategy´ already contains... GKonheiser General Programming 10 05-30-2012 08:18 AM
'NinjaTrader.Strategy' is a 'namespace' but is used like a 'type' MrOrange Strategy Development 5 04-26-2012 06:29 AM
Strategy Not Compiling - CurrentDayOHL Error lrsweeney Strategy Development 7 08-30-2010 03:22 PM
Error: "NinjaTrader.Data.Period" does not contain a constructor that takes 2 argument astrolobe Version 7 Beta General Questions & Bug Reports 5 01-25-2010 02:28 PM
"The namespace Ninjatrader.Indicator already contains a definition for '<indicator>'" eeisen Strategy Development 3 09-02-2007 09:47 PM


All times are GMT -6. The time now is 11:19 AM.