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 sukhob, 05-18-2023, 08:26 PM
                      2 responses
                      127 views
                      0 likes
                      Last Post TraderJA  
                      Started by timwey, Yesterday, 10:55 AM
                      4 responses
                      23 views
                      0 likes
                      Last Post timwey
                      by timwey
                       
                      Started by DJ888, 06-28-2024, 10:18 PM
                      3 responses
                      39 views
                      0 likes
                      Last Post AdamDJ8
                      by AdamDJ8
                       
                      Started by ntwong, Yesterday, 08:22 PM
                      0 responses
                      16 views
                      0 likes
                      Last Post ntwong
                      by ntwong
                       
                      Started by Sigma Cypher, 01-08-2022, 06:56 AM
                      9 responses
                      1,170 views
                      0 likes
                      Last Post Tbryant
                      by Tbryant
                       
                      Working...
                      X