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 timmbbo, Today, 08:59 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by KennyK, 05-29-2017, 02:02 AM
          2 responses
          1,279 views
          0 likes
          Last Post marcus2300  
          Started by fernandobr, Today, 09:11 AM
          0 responses
          0 views
          0 likes
          Last Post fernandobr  
          Started by itrader46, Today, 09:04 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by bmartz, 03-12-2024, 06:12 AM
          5 responses
          33 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Working...
          X