Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Latest Version Compile Takes too long

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

    #31
    Hello jeronymite and Conceptzx,

    Thank you for your notes.

    As previously mentioned, this has been reported to development via issue number NT-10898. Your observations have been reported as well and will be considered while development investigates this item. I will post in this thread once I have any meaningful updates to share.

    Thank you for your time and patience.

    Comment


      #32
      Originally posted by NinjaTrader_Emily View Post
      Hello kevinenergy,

      Thank you for your reply.

      Manually copying over scripts in this way is not the documented and supported way to move scripts in/out of the NinjaScript Editor. You would need to either use the Export/Import functions from the Control Center > Tools menu or utilize the Backup/Restore function to backup NinjaScript files and then later restore them.
      Hi Emily,

      Just to go back to my suggestion for reproducing the issue.... While I understand that my method isn't the typical or documented way for doing builds in Ninjatrader it is a method that I have used for over 7 years.

      It is outlined here:

      I am developing a custom indicator and strategy. What is the best practice for a development workflow, especially when I am tracking my code with Git. I also have the following specific questions below: 1) I want to have two copies of my custom indicator. One is the main indicator and one is the development version. I was


      While not the typical use-case, it is a valid one and one that has worked well until now, allowing me to use git source control and do my development in visual studio in an isolated folder away from my live Ninjatrader instance.

      In the absence of a concrete reproducible scenario so far, I think my suggestion should be tested. It might help the developers get to the bottom of this issue which seems to be affecting several users.

      Thanks for your efforts so far in trying to reproduce the issue. Other Ninjatrader support staff seem like they can't be bothered most of the time, but you've gone to lengths to try to get to the bottom of this. So thank you for your efforts.

      Comment


        #33
        Originally posted by kevinenergy View Post

        Hi Emily,

        Just to go back to my suggestion for reproducing the issue.... While I understand that my method isn't the typical or documented way for doing builds in Ninjatrader it is a method that I have used for over 7 years.

        It is outlined here:

        I am developing a custom indicator and strategy. What is the best practice for a development workflow, especially when I am tracking my code with Git. I also have the following specific questions below: 1) I want to have two copies of my custom indicator. One is the main indicator and one is the development version. I was


        While not the typical use-case, it is a valid one and one that has worked well until now, allowing me to use git source control and do my development in visual studio in an isolated folder away from my live Ninjatrader instance.

        In the absence of a concrete reproducible scenario so far, I think my suggestion should be tested. It might help the developers get to the bottom of this issue which seems to be affecting several users.

        Thanks for your efforts so far in trying to reproduce the issue. Other Ninjatrader support staff seem like they can't be bothered most of the time, but you've gone to lengths to try to get to the bottom of this. So thank you for your efforts.
        Hello Kevin,

        Thank you for your note.

        I have added this information to the development report in case they would like to test this process and see if it aids them in their investigation. Thank you for the link outlining the specific process you follow.

        I sincerely appreciate your time and patience.

        Comment


          #34
          FWIW - None of the scenarios described above apply to me. The compiles were hanging when I had one script editor window open and was modifying scripts directly in it. Maybe I had visual studio open somewhere along the way for debugging. The only things I've done which probably wouldn't be on a NT test box are - I've added a reference to the python runtime (and I can't recall if this Newtonsoft json reference is from me or not). I also have an abstract class strategy I created for order management, which I know is not recommended but has caused me no problems up to this point.

          Comment


            #35
            Originally posted by RedDuke View Post
            Hello,

            I recently upgraded to 8.1.2.0 64-bit, and now every compile of custom indicator or strategy take 30-45 seconds, and sometimes when I have visual studio opened, it never finishes. I have to shut down Ninja, delete custom dll files and compile again. Previous version I used 8.0.28.0 64-bit or any other version never had this issue. Is there a setting that makes compile run this long?

            Thanks,
            redduke
            Hello RedDuke (and/or anyone else who would like to contribute),

            To assist with testing this behavior, please follow these steps to send me a copy of your NinjaScript files in a support email (do not share these files publicly on the support forum please):
            • Shut down NinjaTrader
            • Open a Windows file explorer and navigate to the Documents\NinjaTrader 8\bin\Custom folder
              • Copy the AddOns, Indicators, and Strategies folders to your desktop
            • Next, navigate to the Documents\NinjaTrader 8 folder and copy the Config.xml file to your desktop
            • Go to your desktop. Select the AddOns, Indicators, and Strategies folders as well as the Config.xml file (this may be done while holding the Ctrl button while selecting each item)
              • Right-click and choose Send to > Compressed (zipped) folder
              • Give the folder a name
            • Finally, draft an email to support[AT]ninjatrader[DOT]com with the .zip folder attached. Include "ATTN Emily C" in the subject line along with a link to this forum thread in the body of the email
            Once I receive these files, I will respond to the email to confirm and will let you know if we need anything else. I plan to forward the files to development to aid them in testing and reproducing this behavior.

            Thanks in advance for your assistance.

            Comment


              #36
              Though 8.1.2.1 is better, I'm still having long compile times or it gets stuck and locks the rest of the application'functionally. I made a minor, simple change. Added a bool to a script (uses VWAP to filter trade direction or not) hit compile and it's been locked up from 30 minutes now the icon progresses as if it's doing something on Ninjascript Editor but I am still waiting. In the past, I've copied my documents folder as a backup, repaired the ninjatrader installation, started ninjatrader and copied the files back to the correct directory. Usually it compiles as normal again, but I don't know what keeps breaking the operation in my current installation

              Might I suggest separating or isolating the processes for Ninjatrader and Ninjascript editor, maybe it could help retain the normal operation of the platform while ninjascript editor is compiling?
              Last edited by Conceptzx; 01-08-2024, 06:01 AM.

              Comment


                #37
                Originally posted by Conceptzx View Post
                Though 8.1.2.1 is better, I'm still having long compile times or it gets stuck and locks the rest of the application'functionally. I made a minor, simple change. Added a bool to a script (uses VWAP to filter trade direction or not) hit compile and it's been locked up from 30 minutes now the icon progresses as if it's doing something on Ninjascript Editor but I am still waiting. In the past, I've copied my documents folder as a backup, repaired the ninjatrader installation, started ninjatrader and copied the files back to the correct directory. Usually it compiles as normal again, but I don't know what keeps breaking the operation in my current installation

                Might I suggest separating or isolating the processes for Ninjatrader and Ninjascript editor, maybe it could help retain the normal operation of the platform while ninjascript editor is compiling?
                I'm having this very same issue. I click compile and it just keeps processing. I'm going to let it run over night to make sure it is locked. This is after a fresh install and importing only one script.

                Comment


                  #38
                  Originally posted by abandonedBaby View Post

                  I'm having this very same issue. I click compile and it just keeps processing. I'm going to let it run over night to make sure it is locked. This is after a fresh install and importing only one script.
                  See my previous post. It's not a perfect solution but it works 85% of the time for me. It's been a constant issue.

                  Comment


                    #39
                    The basic issue is that the way 8.1.2.x handles compilation is broken! There have been problems with extended and unnecessary compilation times for several versions. Version 8.1.2.x simply demonstrates the issues far more dramatically.

                    Essentially, the issues seem to hinge on matters related to multiple NinjaScript Editors being open or multiple files open in NinjaScript Editors or multiple files edited externally and saved, with at least one NinjaScript Editor being open to detect and flag the need for compilation.

                    It also seems to have the characteristics of timing/synchronisation errors in determining what to compile and when.

                    In any case, the summary is simple: it's broken and needs thorough investigation to ensure the possible scenarios above (and others) work as efficiently as professional developers would expect.

                    Thanks.
                    Multi-Dimensional Managed Trading
                    jeronymite
                    NinjaTrader Ecosystem Vendor - Mizpah Software

                    Comment


                      #40
                      is there any update on this defect for a fix? the last update was in 2023 december. I am really looking forward to the fix as i want to take advantage of the newer c# features

                      Comment


                        #41
                        Originally posted by junkone View Post
                        is there any update on this defect for a fix? the last update was in 2023 december. I am really looking forward to the fix as i want to take advantage of the newer c# features
                        There are no updates to offer at this time. Please continue to monitor the release notes, as the issue number (NT-10898) will be mentioned if and when a fix is put into place in a future release:


                        Thank you for your time and patience.

                        Comment


                          #42
                          i just un-installed and reinstalled the previous version. Updates in strategy builder were taking waaaay too long. Its still going slow :/

                          Comment


                            #43
                            Originally posted by SteveReiza View Post
                            i just un-installed and reinstalled the previous version. Updates in strategy builder were taking waaaay too long. Its still going slow :/
                            Which "previous version" are you referring to? Please provide the version number shown at Control Center > Help > About. What steps are you taking to update in Strategy Builder, and how long are the updates taking?

                            I look forward to your reply.

                            Comment


                              #44
                              For me, I've discovered my issue was with my recently created custom indicator. If I have a workspace with a chart and my indicator loaded, i get varying compile lock ups. I have to force close NT and re-open it. I've now created a new coding workspace that I switch to without my custom indicator loaded (making sure that workspace is closed - hover over workspace name and click close) and my compiler is working just fine. The strange thing is the compiler will work some of the time when my indicator is loaded on a chart in the current workspace.

                              Comment


                                #45
                                Originally posted by abandonedBaby View Post
                                For me, I've discovered my issue was with my recently created custom indicator. If I have a workspace with a chart and my indicator loaded, i get varying compile lock ups. I have to force close NT and re-open it. I've now created a new coding workspace that I switch to without my custom indicator loaded (making sure that workspace is closed - hover over workspace name and click close) and my compiler is working just fine. The strange thing is the compiler will work some of the time when my indicator is loaded on a chart in the current workspace.
                                Have you tried display warnings? It sometimes gives you an idea what may be wrong.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                111 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                59 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                38 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                41 views
                                0 likes
                                Last Post TheRealMorford  
                                Started by Mindset, 02-28-2026, 06:16 AM
                                0 responses
                                78 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Working...
                                X