• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 1001111, Today, 10:23 AM
                      1 response
                      5 views
                      0 likes
                      Last Post NinjaTrader_PaulG  
                      Started by NinjaCustomer, Today, 11:07 AM
                      0 responses
                      1 view
                      0 likes
                      Last Post NinjaCustomer  
                      Started by NtFan, Today, 10:47 AM
                      1 response
                      6 views
                      0 likes
                      Last Post NinjaTrader_Jesse  
                      Started by dmking, Today, 10:55 AM
                      0 responses
                      5 views
                      0 likes
                      Last Post dmking
                      by dmking
                       
                      Started by broffe18, Today, 09:57 AM
                      3 responses
                      13 views
                      0 likes
                      Last Post broffe18  
                      Working...
                      X