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

    Strategy created with Wizard can not be exported

    Hello,

    I created strategy with Wizard, but when I want to send it to my friend there are some errors (Tools - Export Ninjascript).

    When I send only .cs file of this strategy, my friend do not see it between strategies to select from.

    So, how can I transport this strategy?

    Thank you for your help...
    Attached Files

    #2
    pavelevap,

    NinjaScripts need to be ALL error free before you can export. The errors are likely stemming from one of your other NinjaScript files. What you want to do is go to Tools->Edit NinjaScript->open any indicator or any strategy. Press F5 to compile and then you will see the error list. Double click on the error line to bring you to the file that has the error. You will need to fix this before you can export.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Yes, I know about it. But the main problem is that I did not make any change to source code. I used only Wizard, so I do not understand code and I do not want to edit it. I use only Wizard and so I am very surprised that this generated code from Wizard is full of errors. Could you please look at my strategy where is problem? Because strategies from Wizards should be correct, is not it? Thank you for your help...

      Comment


        #4
        pavelevap,

        The Wizard never generates errors. You have errors in other NinjaScript files. When you export or compile ALL files need to be error free. All files are processed at once and any errors across any of your files will be shown here. All of them need to be fixed before you can proceed. Just open up the editor on any file and press F5 to compile. That will show you the list of errors from ALL of your NinjaScript files. If it is in red it means it is on a different file than the one you have currently opened. Double clicking on it will open up the other file and bring you to the error. Fix it from there.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          OK, but problem is somewhere else.

          Tools - Edit Ninjascript - Strategy - select my file - OK - View Code - Compile - Strategy successfully generated. OK, it works.

          But now I want to export it and send it to my friend.
          So, File - Utilities - Export Ninjascript - select my file - Export - Error compiling export sources - There are 4 errors in my log (orange Warning, related to my script) - and file for sending to my friend is not created.

          Why? Could you please look at it? Thank you very much...

          I did not make any changes in code (this Strategy has not unlocked code), all was created by Wizard. This file (attached to my first post) is my only file which was created by Wizard. Strategy works without problem, but I can not export it for my friends...

          Comment


            #6
            Please open an Indicator in the editor and press F5 to compile. It will bring you to any errors. If you can compile error free, but can't export you will need to inform us what the exact error message are.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              It is not indicator, but simple strategy.
              This strategy was created only by Wizard, no code hacks.
              Yes, I can compile it without errors, but export does not work. There are following errors:

              Error compiling export sources: c:\Users\Pavel\Documents\NinjaTrader 6.5\bin\Custom\Strategy\CCIpatterns.cs(60,28) : error CS0103: Název CCI v aktuálním kontextu neexistuje.
              Error compiling export sources: c:\Users\Pavel\Documents\NinjaTrader 6.5\bin\Custom\Strategy\CCIpatterns.cs(52,28) : error CS0103: Název CCI v aktuálním kontextu neexistuje.
              Error compiling export sources: c:\Users\Pavel\Documents\NinjaTrader 6.5\bin\Custom\Strategy\CCIpatterns.cs(39,17) : error CS0103: Název CCI v aktuálním kontextu neexistuje.
              Error compiling export sources: c:\Users\Pavel\Documents\NinjaTrader 6.5\bin\Custom\Strategy\CCIpatterns.cs(38,17) : error CS0103: Název CCI v aktuálním kontextu neexistuje.

              You can check it out (strategy is attached to the first post).
              Thank you for your help...

              Comment


                #8
                It exports fine here, can you translate the exact error message for us. Thanks.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  It is something like: "The name 'CCI' does not exist in the current context".
                  I tried it once again and I can not export this file.
                  Thank you for your help...

                  Comment


                    #10
                    That is strange. Can you bring up the indicator selection window? Tools->Edit NinjaScript->Indicators. See if you have an indicator there called CCI.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Yes CCI is there and I can work with it.
                      But export does not work...

                      Comment


                        #12
                        pavelevap,

                        Hmm. Like Ray, it compiles and exports on my end too. Maybe you have something corrupted. Perhaps you could try a reinstall of NinjaTrader. First backup your NinjaScripts, workspaces, etc. When you uninstall, delete the My Documents\NinjaTrader 6.5 folder as well (you will lose everything). Then when you reinstall it will be a fresh version and hopefully that resolves the issue for you.

                        1. Backup
                        2. Uninstall NT
                        3. Delete My Documents\NinjaTrader 6.5
                        4. Clear internet browser cache
                        5. Reinstall NT
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Reinstalled but without success.
                          Four errors are still there.

                          I tried it only on fresh install of NT.
                          And then on restored from backup.

                          But no chance to export script.
                          I tried to make some changes in Wizard, but nothing worked (attached is actual script, I can View Code, Compile without problem, but there are errors during export).
                          Attached Files
                          Last edited by pavelevap; 11-30-2008, 10:13 AM.

                          Comment


                            #14
                            pavelevap,

                            If you want we could schedule a remote login session to see what is going on. Please send me an email with a time and a telephone number I can reach you at. Please mention this thread in the email. Thank you.

                            josh [dot] peng [at] ninjatrader [dot] com
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              OK, I will send you email, but before I have another hint for you:

                              I tried it export on machine of my friend and it worked.
                              Message (look at attached screenshot) appears during export (including indicator CCI, SMA).
                              But on my computer I can not see this message because error appears before it.
                              Attached Files

                              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