Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Showing Strategies List on chart is slow in the new 8.1 version of Ninjatrader

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

    Showing Strategies List on chart is slow in the new 8.1 version of Ninjatrader

    Hello, when I install the following software (Ninjacators.RobotsPro.2.1.0.3.msi) on Ninjatrader 8.1, when I try to see the list of strategies it takes more time and it prints more information on the output window than when I install it on Ninjatradre 8.0 and try to check the list of strategies.

    Installer download link:
    HTML Code:
    https://www.dropbox.com/scl/fi/bttvvyk6al3c3nyiccn8n/Ninjacators.RobotsPro.2.1.0.3.msi?rlkey=b8cib0809f3spmmn1jur285vl&dl=0
    Steps to reproduce the behavior:
    1. Install Ninjatrader 8.1
    2. Install the software
    3. Open Ninjatrader
    4. Open a chart
    5. Right click on chart
    6. Go to Strategies
    7. Check the output window and check time to load
    8. Uninstall the software
    9. Uninstall Ninjatrader 8.1
    10. Install Ninjatrader 8.0
    11. Install the software
    12. Open Ninjatrader
    13. Open a chart
    14. Right click on chart
    15. Go to Strategies
    16. Check the output window and check time to load

    Attached you will find the version and the outputs when I execute the steps above.


    Could you please tell us why is that difference in the output when we list the strategies?
    Attached Files

    #2
    TemplateTestStrategy.cs Click image for larger version  Name:	image.png Views:	0 Size:	11.0 KB ID:	1307398​​
    Hello NinjaTrader_Manfred
    I can confirm this issue.
    It seems NT8.1 is creating the instances of the strategy for every template.
    How to replicate the issue:
    1. Add the strategy TemplateTestStrategy.cs
    2. add the templates.
    3. close NT8
    4. Run NT8
    5. Open the Output1 window
    6. open the list of strategies on the chart.

    Notice a lot of calls in the output window, please.
    See the attached logs with and without the templates, please.

    The issue is appearing when you open the list of the strategies right after the NT8 starts. If you open the list the second time the issue does not appear.

    Regards,
    Last edited by AlexMocc; 06-17-2024, 07:14 AM.

    Comment


      #3
      To NinjaTrader_Manfred
      The additional info about the issue.
      1. Install the product from the post https://forum.ninjatrader.com/forum/...er#post1307333
      2. Add the strategy TemplateTestStrategy.cs
      3 Open the Output1 window
      4. Open the list of the strategies on the chart
      5. See the long output

      Important: The issue is appearing when you open the list of the strategies first time after NT8 starts.

      The question is:
      Why is TemplateTestStrategy called so many times? See the attached file, please.
      Thank you!
      Attached Files
      Last edited by AlexMocc; 06-17-2024, 02:07 AM.

      Comment


        #4
        Hello AlexMocc ​,

        Thank you for reaching out.

        Is the automated strategy you are working with, a strategy coded by yourself using the Strategy Builder, or was it acquired from a 3rd party?

        If it is your own coded strategy, please contact our engineering team at

        [email protected]

        and they will be able to guide you in debugging the strategy.

        If it is a 3rd party strategy, you would want to contact the developer for assistance with their software.

        Please let us know if you have any other questions.​
        Erick P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Erick View Post
          Hello AlexMocc ​,
          ...
          Please let us know if you have any other questions.​
          Thank you for your message.
          The files was not attached to my message https://forum.ninjatrader.com/forum/...97#post1307397 for some reasons. This is why my question was not clear.

          The question is about the NT8 but not about the strategy.
          NT8 creates the instance of the strategy every time the user opens the list of the strategies. It is ok. This is documented.

          The question is:
          Why does NT8.1 create the instance of the strategy 100 times when the user opens the list of the strategies? see the log here https://forum.ninjatrader.com/filedata/fetch?id=1307399
          The strategy is trivial. It just prints the line every time NT8 calls OnStateChange()
          See the line 59 of the file https://forum.ninjatrader.com/filedata/fetch?id=1307401 , please

          The NT8.0 works as expected (more or less)
          Last edited by AlexMocc; 06-17-2024, 07:23 AM.

          Comment


            #6
            Hi NinjaTrader_ PatrickS
            Were you able to replicate the issue with the templates and slow list of strategies?
            Do you need more info from me?

            Comment


              #7
              Hello AlexMocc ​,

              Thank you for reaching out.

              Since the issue you are reporting, comes down to how (Ninjacators.RobotsPro.2.1.0.3) and strategies work within 8.0 and 8.1, this would be an engineering /scripting related inquiry.

              If you would like someone to test this and provide insight on how our software works in this regard, you would want to either contact the vendor of the strategy or contact our engineering team directly at

              [email protected]

              They would be able to work with you or the vendor on why this occurs and whether it can be correct or is expected.

              Please let us know if you have any other questions.
              Erick P.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Erick View Post
                Hello AlexMocc ​,
                .
                Read the message https://forum.ninjatrader.com/forum/...97#post1307397 , please.
                You can replicate the issue without the third part code. Really.
                you have to copy the templates and use the source file of the TRIVIAL strategy.
                There is no third part code here.
                This issue is related to the way NT8.1 works with the templates and strategies. The custom code is NOT involved in this process.

                You can replicate the issue using the provided templates (there is no code) and a trivial strategy where I added the single line.

                As you see in the log file NT8.1 creates too many instances of the strategy. The third code is not involved. The only third thing is the number of templates.
                Why do templates cause TN8.1 to create 100+ instances of the strategy? The source file of the strategy in the https://forum.ninjatrader.com/forum/...97#post1307397 does not use the templates.

                Review the message https://forum.ninjatrader.com/forum/...97#post1307397 again, please. There is no any third part code. There are the templates (not the code) and a trivial strategy to demonstrate the issue.

                Regards,​

                Comment


                  #9
                  Hello AlexMocc,

                  Because you are including a custom script that would need to go through scripting support, a custom script is required to print out the debug information you are trying to show. I see a email that looks like it may be from you and we are replying by email so there is no need to reply to this post any further as the support team will continue to direct you to the scripting support email. .
                  JesseNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by MatthewLesko, 05-21-2021, 09:37 PM
                  4 responses
                  164 views
                  0 likes
                  Last Post Mahmad1323  
                  Started by samish18, Today, 03:02 PM
                  3 responses
                  15 views
                  0 likes
                  Last Post bltdavid  
                  Started by Jakub, Today, 11:06 AM
                  1 response
                  16 views
                  0 likes
                  Last Post NinjaTrader_LuisH  
                  Started by samish18, Today, 03:50 AM
                  10 responses
                  19 views
                  0 likes
                  Last Post samish18  
                  Started by Mestor, 06-03-2018, 10:09 AM
                  16 responses
                  2,872 views
                  0 likes
                  Last Post myaha1000  
                  Working...
                  X