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

    #16
    Hi pavelevap,

    This is not an error, but a quite normal occurence - of course you want to export any scripts the final indicator depends on (like SMA or CCI in this case).

    It will not show up on your end as you already have the scripts loaded.

    Comment


      #17
      I add here latest info about this problem and I will hope that somebody encounter similar problem...

      Josh visited my computer and suggested to reinstall Windows, because behaviour of my exporting function was very strange. But there are some other hints and I will try to wait for another update of NT and hope that it will help me.

      I tried several things to manage NT to export Ninjascripts:

      1) My computer is only two weeks old, so I restored system to the point after clean install of Vista Business. But this also did not help...

      2) I showed my problem to my friend (C# developer) and he made some tests with my .NET Framework:
      - He tested my windows with command sfc /scannow
      - He made also some compilation tests on my computer
      - He tested .NET Framework by some other integrity tools.

      Finally, there are no problems on my computer with .NET Framework or something else with Windows Vista. Everything works perfectly...

      3) I tried to install NT on some co-workers' computers and I found another computer with this problem.

      So, I expect that this is not only problem of my computer, but there are some hidden problems with NT compilation during export.
      Compilation of my script works well except compilation during Export.
      How are these two types compilation different?
      Could you tell me, how it works?

      It is very interesting that export of my strategy does not work with CCI indicator, but when I change it to for example ADX indicator, then export works very well.
      It looks that there is some problem with including some indicator scripts into my whole exported strategy zip file.

      For example in my original strategy is following source code:

      Code:
       
      protected override void Initialize() 
      { 
      Add(CCI(CCI_short)); 
      Add(CCI(CCI_short)); 
      SetStopLoss("", CalculationMode.Ticks, StopLoss, false); 
      SetProfitTarget("", CalculationMode.Ticks, ProfitTarget); 
       
      CalculateOnBarClose = true; 
      }
      But when I change (with Strategy Wizard) indicator from CCI to another indicator (RSI, MACD, etc), there is following code (without Add() function):

      Code:
       
      protected override void Initialize() 
      { 
      SetStopLoss("", CalculationMode.Ticks, StopLoss, false); 
      SetProfitTarget("", CalculationMode.Ticks, ProfitTarget); 
       
      CalculateOnBarClose = true; 
      }
      And when I change indicator from CCI on ADX then everything works smooth and export works. But in exported .zip file there is no ADX indicator included (I am not sure if it should be there).

      Comment


        #18
        pavelevap,

        No one else has reported issues with the export and none of the machines we have on our end is able to reproduce your scenario. There is nothing more I can suggest besides waiting for the next update and then trying then.
        Josh P.NinjaTrader Customer Service

        Comment


          #19
          im trying to export a strategy but im getting an error with the cybercycle indicator on the log,

          does the cybercycle not work in auto strats ?

          Comment


            #20
            price777999,

            Unfortunately I am not sure what the "cybercycle" indicator is. You will need to contact the original author. As a note, you cannot export or import anything unless all of your NinjaScripts are error free.
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              I have exactely the sam issue as pavelevap, so it is not right to say noone else has this kind of problems.

              I develop my scripts on one PC and trade the on the other. Yesterday, I had to change some minor things right on my trading PC. The script compiled well and it run in live trading. Afterwards I wanted to export it, and I get the same error messages - and as pavelevap during export attempt only!

              It seems that all of a sudden the reference to my personal bulit indicators causes this export error, but the indicatros worlk fine, were there a while, did not change them, etc.

              Is it okay to select all in a script and copy/paste it to my other PC?

              Thank you!

              P.S.: Maybe the fact that we are not on an US Windows might cause issues as I assume that pavelevap is not from the US as well? I am on a German XP Pro (but have all set to US country settings and my time is set to EST too).

              Comment


                #22
                Hello,

                I did not read this entire thread, but you are trying to move the indicators and statrategies to another computer? If so, do it via File>Utilities>Export and the necessary files should come with it. Are you doing this?
                DenNinjaTrader Customer Service

                Comment


                  #23
                  Originally posted by NinjaTrader_Ben View Post
                  Hello,

                  I did not read this entire thread, but you are trying to move the indicators and statrategies to another computer? If so, do it via File>Utilities>Export and the necessary files should come with it. Are you doing this?
                  Well, the whole thread is about the problem that exactly what you propose causes the trouble! You better read it first!

                  Comment


                    #24
                    Hello,

                    OK, I will let someone, who has been following the thread, respond on Monday.
                    DenNinjaTrader Customer Service

                    Comment


                      #25
                      Well, I spent the weekend setting up a claen and new XP with IBs TWS 887 an latest NT 6.5. I exported one script from my other developing PC to the new setup (including my 5 individual indicators) which cuased no problems. Importet them and compiled them on the new setup PC, no problem. Started it, no problem.

                      Then, I tried to export the very same script from the newly setup PC, and here comes the same error message again!

                      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.

                      Very annoing! It works on one PC and not on the other which is basically the very same hardware and which I extra had setup again to be sure to have clean installations (as the problem occured before on that very same PC)!

                      Comment


                        #26
                        Compiler error CS0103 claims a context error concerning a variable declaration. I would rather search in this direction to see if there is something uncommon with the declaration of HoboMidLower.

                        Regards
                        Ralph

                        Comment


                          #27
                          Thanks for your input Ralph

                          HoboMidLower is just one example, I get the error for all five of my indicatros.

                          But the 5 indicators work fine:
                          Can be compiled on both PCs,
                          can be run (used by my scripts) on both PCs,
                          but script referring to it can only be exported on PC1 but not on PC2.

                          Comment


                            #28
                            For better understanding what is going on in your environment:
                            1. NT export feature implies a recompilation of the indicator assembly and that fails, is that true? If you just compile indicators (no export) on the same machine, no error occures?
                            2. What is "HoboMidLower"? (basic data type, method, class, ...)
                            Regards
                            Ralph

                            Comment


                              #29
                              You need to resolve any NinjaScript compile error before you could export a NinjaScript file.

                              In case you had not come across yet, here is a guideline on how to work your way through that: http://www.ninjatrader-support2.com/...ead.php?t=4678

                              Comment


                                #30
                                I am losing my patience with that level I support answers from NinjaTrader staff without even glancing at more than one last post!

                                Can't you read:
                                THE SCRIPT AND THE INDICATORS ALL COMPILE WELL - THE EVEN RUN PROPERLY. Dont tell me for the third time that scripts/indicators have to be able to be compiled before exporting - they do and I told you so several times!

                                I even can export the VERY SAME SCRIPT on computert A) but the EXPORT FAILS ON computer B), which btw I have set up completly new to try to slove any issues which might have been caused by the installation! But nada!


                                @Ralph

                                Thank you very much for your support!
                                Yes, exactely as you describe it in 1.
                                NT export feature implies a recompilation of the indicator assembly and that fails, is that true? If you just compile indicators (no export) on the same machine, no error occures?
                                And as said before, I can export it without any problems on another PC!

                                The indicators are based on SMA and Bollinger calculations (e.h. using High for Bollinger and rounding it to 0.25 increments for the ES). They work in tests and during live trading.

                                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?

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                633 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                364 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                105 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                567 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                568 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X