Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error saving/loading strategy templates

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

    Error saving/loading strategy templates

    Hi
    So, in strategy analyser, I am being able to save a strategy's parameters into a template.
    But when I select to load this template, the parameters are not loaded. I am able to select this template in the popup window, but the parameters are not loaded.
    I even noticed that sometimes this template wouldn't be available in the load screen.

    Trying to fix this issue, I uninstalled NT8, downloaded the latest version, but the same issue is going on.

    The weird part is that I was being able to load templates earlier today, but suddenly this bug happened.

    Please, this feature is vital to our business, help us
    Best regards
    Last edited by Eros Lima; 02-12-2017, 01:32 PM.

    #2
    Hello Eros,

    Thank you for your note.

    Are you able to replicate this issue using the SampleMACross strategy preloaded with NinjaTrader? I’ve put together a video showing I’m unable to replicate the issue.

    Video: https://www.screencast.com/t/PnKaxxRfmGPf

    What version of NinjaTrader 8 are you on? Under Control Center>Help>About.

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

    Comment


      #3
      I wasn't able to reproduce this issue on strategy SampleMACrossOver.
      Debugging my code, I found out the problem was happening because I was declaring some instance variables as "public". As soon as I switched them to "private", I could load templates normally.

      I find this a very weird behavior, hope you can verify this.
      Thank you again

      Comment


        #4
        Hello Eros Lima,

        It would be expected in your user definable variables were incorrectly defined as private rather than public, strategy templates would not act as expected.

        Please see the following reference example on creating a user definable parameters,


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

        Comment


          #5
          Hi, I also ran into this issue and had to correct by changing some instance variables from public to private.

          However, my symptom was that I was unable to save a Strategy template. So, when I clicked Save, it would bring me back to the prior window like it completed but when I tried to load my template, it wasn't there.

          Please submit a feature request/bug report to have NJT echo an error or write something to the Log that the save failed due to this reason so the user can correct the problem.

          Comment


            #6
            Hello PN720,

            Thank you for your suggestion. I will submit a SFT for an exception saving a strategy template output an error ot the log file.

            Thank you for your suggestion.
            Alan P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by mgco4you, Today, 09:46 PM
            0 responses
            1 view
            0 likes
            Last Post mgco4you  
            Started by Rapine Heihei, Today, 08:19 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by Rapine Heihei, Today, 08:25 PM
            0 responses
            6 views
            0 likes
            Last Post Rapine Heihei  
            Started by f.saeidi, Today, 08:01 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by Rapine Heihei, Today, 07:51 PM
            0 responses
            8 views
            0 likes
            Last Post Rapine Heihei  
            Working...
            X