Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Regarding the duplicate methods

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

    Regarding the duplicate methods

    Hello,

    I've exported a strategy along with needed indicators. One can import it only on clean install of NT7. Once the import is done, one gets errors in pretty much all of the standard indicators that use SMA. The error during compilation looks like this:

    -- The type "NinjaTrader.Indicator.SMA" exists in both c:\Users\.... --
    -- NinjaTrader.Indicator.SMA is a 'type' but is used like a 'variable' --

    Any ideas how I can solve this? Is there a chance of this happening because of public enum that involves type "SMA" as a type?

    #2
    Hello RobertasJ,
    If you try reinstalling NinjaTrader then are you able to reimport it again.

    Please download and install the latest version of NinjaTrader from here


    Please make sure NinjaTrader is NOT running while you are installing the new version.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      I'm aware that I can reimport again. I have latest NT7 installed.

      I'm asking how can I solve this so I don't have reinstall NT7 every time if I need to import anything else. This import blocks any further import of any other strategy/indicator as it gives me ''error in some code" (because of the errors in standard indicators I've mentioned above: be it @Bollinger or anything else).

      Thanks in advance.

      Comment


        #4
        Hello RobertasJ,
        You dont have to install it every-time you reimport it. The error may be due to an bad installation only and thus I am asking you to see if the scenario disappears if you try reinstalling NinjaTrader and see if you are able to reimport it.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Ah, I see

          I've tried reinstalling NT7 many times and the scenario is identical every time. It's either I can import this package and then receive compilation errors on standard indicators or I get duplicate methods error if I import few other indicators/assemblies/strategies before it.

          Comment


            #6
            Hello RobertasJ
            To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

            Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

            I look forward to assisting you further.

            *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Graci117, Today, 09:02 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by ETFVoyageur, Today, 07:55 PM
            0 responses
            7 views
            0 likes
            Last Post ETFVoyageur  
            Started by janio973, Today, 07:24 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by aligator, 01-06-2022, 12:14 PM
            4 responses
            246 views
            0 likes
            Last Post john_44573  
            Started by reynoldsn, Today, 05:56 PM
            0 responses
            14 views
            0 likes
            Last Post reynoldsn  
            Working...
            X