Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Parameter Persistence

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

    Parameter Persistence

    I looked around for information on saving parameter data of a strategy and did not find much that meets my needs. My thought is to create a Parameter Object that will hold all my custom strategy parameters and access methods. I would then “link” it to the parameters available through the strategy properties tab.

    I could then either serialize this to disk for later retrieval, or save it to the registry. The unique identifier would be the Instrument.FullName.

    If this is already done, great – point me in the right direction. If not, I’ll create it for my needs. If anyone else finds this useful, let me know and I will post the code – if the NT group does not mind.

    Thanks,

    -Scott

    #2
    There is nothing that the NinjaScript layer provides for this.
    RayNinjaTrader Customer Service

    Comment


      #3
      Understood. I'm writing my own XML serialization routine to handle this. I'll post my code if anyone finds this useful.

      -Scott

      Comment


        #4
        This is on my queue of things to do as well. It might be better if you use a combination of instrument name and strategy name to save the params.

        Comment


          #5
          Good idea. I'm planning on adding the Interval as well.

          -Scott

          Comment


            #6
            Hi Scott - I know this is bit of old thread but still a highly useful idea. Did you ever post your code for param persistence?

            Also, is there a way to load in set of params for a strategy from within the Strategy Analyzer?

            I wrote a "Load..."/"Save..." property hack (which uses change event of property to de-serialize/serialize out from/to file via the value within the property) which basically utilizes INI Windows API to be able to persist params for a strategy. But can only get the change event to trigger file load/save from within chart strat param dialog and not via Strategy Analyzer's strat param dialog.

            JD
            Last edited by jdfagan; 07-23-2010, 08:00 AM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X