Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy created with Wizard can not be exported

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

    #31
    Originally posted by BillCh View Post
    I am quite sure that there is a bug in NT, becuase how can it be that the very same piece of code compiles when coding (pressing F5), but not when compiling during export - but then again on a different PC even during export?
    Another possiblity could be the C# compiler itself, because it behaves inconsistent depending on the environment. It is just a guess but I could imagine it is something subtle with one of the variable declarations because of the compiler error you wrote about.

    Could you provide some more details? Is there something special with the declaration the compiler is complaining about? Do you define your own namespaces? Could you show a code example without exhibit your implementation details?

    Usually it is possible to find the source of compiler errors.

    Regards
    Ralph

    Comment


      #32
      >> 2/23/2009 2:52:52 AM Default Error compiling export sources: c:\Dokumente und Einstellungen\...\Eigene Dateien\NinjaTrader 6.5\bin\Custom\Strategy\HoboESv04cTmpSolBE_e_1Ctr_ e0_x1_copypaste.cs(171,8) : error CS0103: Der Name HoboMidLower ist im aktuellen Kontext nicht vorhanden.

      This indicates that you did not include the NS object which would implement HoboMidLower in your list of exported NS objects.

      Comment


        #33
        Thank you for your efforts to help, Ralph.

        Generally speaking, there for sure is a problem with NT and NT support and/or its developers simply do not believe that. Several threada adressing the same or similar problems, standard answer is to uninstall this and that.

        For sure we make coding errors which will lead to problems, of course users do have somehow messed up Windows installations, etc. But some issues, like this one here, happens repeatedly to several useres who tried everything - including me: not only did I repair NT, uninstall/reinstall TWS, .NET, NT, I even set up me PC completly new. But nothing helps!

        And, a lot of people on NON US Windows coutnry/language settings reporting the problem. Not one NT support person even considered to follow that up - only advice is to reinstall again, as if this wasnt be done befeor.

        And the export issue which cannot be explained nor is it even investigated by NT personell, for them is just a problem of a yet another ... user who, which it clerly is not, not in our case here and some others as well.

        Comment


          #34
          Please follow Dierk's suggestion. Thank you.
          Josh P.NinjaTrader Customer Service

          Comment


            #35
            People from NT really do not believe this problem

            We want to export strategy. Strategy works well, compiled well, everything works. But Export not. In this strategy we use some indicators (for me for example CCI).

            BillCh has the same problem.
            From the time when I reported this error, I installed NT on 3 new computers (I installed Windows here also).
            On two of them there was the same problem, one works well.
            It is strange, but maybe NT experts could try to locate this problem and not only advice: "You have to reinstall NT. You have to reinstall .NET Framework, You have to reinstall Windows, You have probably errors in you strategy, You did not include something somewhere."

            I think I am very advanced user and I can tell that this is not problem of users, but it is problem of NT. We simple make strategy, compile it, try it and everything works. Trying to export - some PCs work some not. Strange, but truth. I also suspect some kind of problem with regional settings...

            But I am waiting for NT7 and hope that this problem disappears...

            Comment


              #36
              @pavelap: Could you please send logs and traces to "support AT ninjatrader DOT com" subject "for Dierk" and reference this thread.

              Also: please provide a timestamp on when you tried the export. Thanks

              Comment


                #37
                I have just experienced this problem as well.

                All indicators and strategies compile without error.

                I'd like to know if NT figured out how to fix this.

                I was exporting my most recent strategy for a friend, and received error CS0103 "The name (indicator) does not exist in the current context".

                There is nothing special about the indicator. It is a cs file, not dll, not protected.

                The error:
                Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	25.1 KB
ID:	851929

                Proof indicator compiles fine:
                Click image for larger version

Name:	Capture2.PNG
Views:	1
Size:	84.8 KB
ID:	851930

                Proof strategy compiles fine:
                Click image for larger version

Name:	Capture3.PNG
Views:	1
Size:	60.0 KB
ID:	851931

                Mike

                Comment


                  #38
                  Please take a look here: http://www.ninjatrader-support.com/H...easeNotes.html

                  Fixed 2689 NinjaScript Export could fail on some occasions (now allow manual addition of system indicators to resolve issue)

                  Comment


                    #39
                    Originally posted by NinjaTrader_Dierk View Post
                    Please take a look here: http://www.ninjatrader-support.com/H...easeNotes.html

                    Fixed 2689 NinjaScript Export could fail on some occasions (now allow manual addition of system indicators to resolve issue)
                    Thank you, I figured it out.

                    Mike

                    Comment


                      #40
                      BTW, it wasn't a "system" indicator causing the problem. But nonetheless, the changelog and your response helped me figure out I could manually populate the indicator to the list of what needed to be exported.

                      Mike

                      Comment


                        #41
                        You need to manually add those custom indicators to your export which report errors. In case the missing indicators would be a system indicator you needed to check out the new "System indicators" option in "Export objects" combo box.

                        The whole trouble stems from an inconsistency in the different .NET releases. It could be overcome 100% by manual intervention as per above.

                        Comment


                          #42
                          NinjaTrader_Dierk: I deleted your post due to it's polemic nature. Please contact "support AT ninjatrader DOT com" if you have any questions.
                          Thanks for the link you provided though: http://www.ninjatrader-support.com/H...ExportProblems

                          Comment


                            #43
                            I've had a similar error exporting a very simple strategy that only included the Bollinger bands as initialized indicators (which work fine usually, needless to say).

                            Well, what helped was to "remove" the Add(Bollinger...) lines from the code by commenting them, then exporting the strategy, and uncommenting them after importing the strategy to the target PC.

                            Best,
                            noincomenojobnoassets

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            558 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            324 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            101 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            545 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            547 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X