Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error to save stratetegy template

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

    Error to save stratetegy template

    Hello,

    on my strategy I can save the "strategy template" but when I load the template it does not load nothing.
    The same occur in the strategy analyzer.

    NT8 version: 8.0.10.0 64-bit (Standard)

    Note:

    1. all variables are in "protected override void OnStateChange()" , included the default.
    2. all variables are "public". This a format example:

    [NinjaScriptProperty]
    [Display(Name="Period Dyn.RSI TF1", Description="", Order=60, GroupName="Set Time Frame 1")]
    public int _per_drsi_tf1
    { get; set; }

    3. No error to compile, no error in the start parameters window.

    I note that the save xml file, at the end, does not save any value, I attach here to check (test.zip)

    Which can to be the problem please?
    Thanks
    Attached Files
    Last edited by ClauTrade; 11-21-2017, 01:58 PM.

    #2
    Hello ClauTrade,

    Thank you for your note.

    When you attempt to save a template for the SampleMACrossOver strategy, do you expereince the same issue?

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi Alan,

      sorry, I forgot to tell that this is first time I have this issue ...and sure is for the code.

      I have not same problem in SampleMACrossOver or in several my strategies, all work fine.

      Thanks

      Comment


        #4
        Hello ClauTrade,

        Thank you for your note.

        Without the full code we're unable to test on our end.

        If you'd like to upload the full code I can take a look and see if anything jumps out. Or if you'd prefer to email a copy, send to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and the files.

        I look forward to your reply.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          strategy template load .. does nothing

          Hello,

          similar problem here:
          I have strategy parameters (decorated with [NinjaScriptProperty] ) that I can save in a template.

          When I recall the template (=> load template) the values saved in the template are not taken over into the strategy edit dialog .

          Please check on your side with a tiny example you produce yourself

          Thank you
          Andreas

          Comment


            #6
            refresh problem

            The template recall failure is a problem of the NT8 software.

            1. I can load a template (it contains Leg2PriceDisplayMultiplier = 42) , but the values in the stategie's property window are not updated (see pic 1)

            2. When I then change on the Available strategies the current active strategy and then go back to the original strategy I effewctivly do force a refresh of the data.
            Then it works and the template data is recalled and the value 42 is showm

            This is a refresh problem inside NinjaTrader, looks like a bug. Please fix within the next releases. Thank you

            Andreas
            Attached Files

            Comment


              #7
              Hello zweistein,

              Thank you for a report.

              Please provide a tiny example so we may test on our end.
              Alan P.NinjaTrader Customer Service

              Comment


                #8
                Please read my first post again, there I wrote:

                Please check on your side with a tiny example you produce yourself

                Thank you
                Andreas

                Comment


                  #9
                  Hello Andreas,

                  Creating custom samples to test what a user hypothesizes to be a bug would be out of the scope of our support. If you’d like us to test a script, please provide it.

                  Please let us know if you need further assistance.
                  Alan P.NinjaTrader Customer Service

                  Comment


                    #10
                    bugfix is your work

                    Just read my post carefully and you can then fix the bug.

                    As a sample script you can use the SampleMACrossOver strategy supplied with the NinjaTrader installation.

                    Best regards
                    Andreas

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by rocketman7, Today, 01:00 AM
                    1 response
                    9 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by wzgy0920, 04-23-2024, 09:53 PM
                    3 responses
                    76 views
                    0 likes
                    Last Post NinjaTrader_BrandonH  
                    Started by JonesJoker, 04-22-2024, 12:23 PM
                    9 responses
                    46 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by timko, Today, 06:45 AM
                    1 response
                    7 views
                    0 likes
                    Last Post gaz0001
                    by gaz0001
                     
                    Started by Waxavi, 04-19-2024, 02:10 AM
                    3 responses
                    41 views
                    0 likes
                    Last Post gaz0001
                    by gaz0001
                     
                    Working...
                    X