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 judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X