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 MacDad, 02-25-2024, 11:48 PM
          7 responses
          157 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Today, 09:29 PM
          0 responses
          6 views
          0 likes
          Last Post Belfortbucks  
          Started by zstheorist, Today, 07:52 PM
          0 responses
          7 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          151 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          6 views
          0 likes
          Last Post mattbsea  
          Working...
          X