• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The namespace 'NinjaTrader.Indicator' already contains a definition

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

    The namespace 'NinjaTrader.Indicator' already contains a definition

    I backed my ninja trader up on my desktop and restored it on my notebook, everything worked fine but ninja scripts couldn't be imported because it would corrupt the db.

    No big deal, i just manually copied the ninja script files and strategies from the document folder of my desktop to my notebook.

    However this time, when i try to compile an old or new ninja script i get the message

    The namespace 'NinjaTrader.Indicator' already contains a definition.


    My ninja trader indicator folder does show every indicator e.g. ADL.cs and ADL-Copy.cs
    Last edited by markus1000; 06-03-2012, 06:20 AM.

    #2
    Originally posted by markus1000 View Post
    I backed my ninja trader up on my desktop and restored it on my notebook, everything worked fine but ninja scripts couldn't be imported because it would corrupt the db.

    No big deal, i just manually copied the ninja script files and strategies from the document folder of my desktop to my notebook.

    However this time, when i try to compile an old or new ninja script i get the message

    The namespace 'NinjaTrader.Indicator' already contains a definition.


    My ninja trader indicator folder does show every indicator e.g. ADL.cs and ADL-Copy.cs
    What is the complete error message?

    Comment


      #3
      i tried to compile a random indicator 'Aama' for example, but the errors are the same for different indicators


      NinjaScript File Error Code Line Column
      Indicator\@ADL.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'ADL' CS0101 - click for info 24 18
      Indicator\@ADX.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'ADX' CS0101 - click for info 24 15
      Indicator\@ADXR.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'ADXR' CS0101 - click for info 24 15
      Indicator\@APZ.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'APZ' CS0101 - click for info 25 18
      Indicator\@Aroon.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'Aroon' CS0101 - click for info 24 15
      Indicator\@AroonOscillator.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'AroonOscillator' CS0101 - click for info 24 15
      Indicator\@ATR.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'ATR' CS0101 - click for info 24 15
      Indicator\@BarTimer.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'BarTimer' CS0101 - click for info 24 15
      Indicator\@Bollinger.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'Bollinger' CS0101 - click for info 24 15
      Indicator\@BOP.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'BOP' CS0101 - click for info 24 15
      Indicator\@BuySellPressure.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'BuySellPressure' CS0101 - click for info 24 18
      Indicator\@BuySellVolume.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'BuySellVolume' CS0101 - click for info 25 15
      Indicator\@CandleStickPattern.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'CandleStickPattern' CS0101 - click for info 25 18
      Indicator\@CandleStickPattern.cs The namespace '<global namespace>' already contains a definition for 'ChartPattern' CS0101 - click for info 856 13
      Indicator\@CCI.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'CCI' CS0101 - click for info 24 15
      Indicator\@ChaikinMoneyFlow.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'ChaikinMoneyFlow' CS0101 - click for info 24 15
      Indicator\@ChaikinOscillator.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'ChaikinOscillator' CS0101 - click for info 24 15
      Indicator\@ChaikinVolatility.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'ChaikinVolatility' CS0101 - click for info 25 18
      Indicator\@CMO.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'CMO' CS0101 - click for info 24 15
      Indicator\@ConstantLines.cs The namespace 'NinjaTrader.Indicator' already contains a definition for 'ConstantLines' CS0101 - click for info 24 18

      Comment


        #4
        Originally posted by markus1000 View Post
        My ninja trader indicator folder does show every indicator e.g. ADL.cs and ADL-Copy.cs
        If 'ADL-Copy.cs' is an exact copy of 'ADL.cs', you need to delete the copy, otherwise you will get this error.

        Comment


          #5
          thanks man

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by aligator, Today, 03:23 PM
          4 responses
          9 views
          0 likes
          Last Post aligator  
          Started by RtelTrade, Today, 01:27 PM
          1 response
          22 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by RolloHarper, Today, 12:59 PM
          2 responses
          22 views
          0 likes
          Last Post NinjaTrader_Jermaine  
          Started by tvaughan4, Today, 01:02 PM
          2 responses
          32 views
          0 likes
          Last Post tvaughan4  
          Started by NinjaTrader_Brandon, Today, 01:19 PM
          0 responses
          58 views
          0 likes
          Last Post NinjaTrader_Brandon  
          Working...
          X