Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy in Strategy Analyzer missing

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

    Strategy in Strategy Analyzer missing

    I know I've ran into this issue before and forget how I fixed it. I was in one strategy and i did a save as and saved it under a new name. The new strategy name shows up in the dropdown in the strategy analyzer but there is no parameters are any info? I click on another strategy in the dropdown and then go back to this new one and it has all the data for the other strategy instead of its own info.

    #2
    Hello Zachj,

    Thank you for your post.

    Since, you created a new one I assume you made changes to the code when you did a Save?

    Did you run a compile of the new script that you saved?

    Additionally, are there any strategy templates in the NinjaTrader 7 documents? (My) Documents -> NinjaTrader 7 -> templates -> strategy
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Yes I definately made changes and compiled several times. But it is not on the folder you mention. How do I add it in there?

      Comment


        #4
        Zachj,

        No worries about the templates folders as this is created when you save the strategy for default settings.

        Can you please attach a sample script of the second one that you created so that I may investigate it
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          I just sent the cs file to the support email. I made a new file to change from multi instrument stock strategy to single instrument futures strategy using Es mini. Not sure if the IOrder array is causing an issue or the Added instrument index maybe.

          Comment


            #6
            Zachj,

            Thank you for sending those files.

            The bug in the script was calling the incorrect instrument in the Initialize()
            Add("ES###-###", PeriodType.Minute, 1);

            Instead, a continuous contract is called with only two ## on each side -
            Add("ES ##-##", PeriodType.Minute, 1);
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              Why in my instrument manager is it showing up as ES ###-### or should it be? In the hist data manager it shows up as you have though... ES ##-##

              Comment


                #8
                Zachj,

                The correct symbol for continuous contract is ##-##.

                Can you attach a screenshot to your reply that shows what you are seeing?
                Cal H.NinjaTrader Customer Service

                Comment


                  #9
                  See attached. List on the left and the expiry dropdown show 3 # signs. The hist data manager shows 2 # signs(not shown here).
                  Attached Files

                  Comment


                    #10
                    Zachj,

                    There are only two ## on either side of the dash
                    Cal H.NinjaTrader Customer Service

                    Comment


                      #11
                      I think my eyes were playing tricks on me, im looking at a small tablet screen, sorry about that. Nevermind.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by DJ888, 04-16-2024, 06:09 PM
                      4 responses
                      12 views
                      0 likes
                      Last Post DJ888
                      by DJ888
                       
                      Started by terofs, Today, 04:18 PM
                      0 responses
                      11 views
                      0 likes
                      Last Post terofs
                      by terofs
                       
                      Started by nandhumca, Today, 03:41 PM
                      0 responses
                      7 views
                      0 likes
                      Last Post nandhumca  
                      Started by The_Sec, Today, 03:37 PM
                      0 responses
                      3 views
                      0 likes
                      Last Post The_Sec
                      by The_Sec
                       
                      Started by GwFutures1988, Today, 02:48 PM
                      1 response
                      9 views
                      0 likes
                      Last Post NinjaTrader_Clayton  
                      Working...
                      X