Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Save and load template/settings

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

    Save and load template/settings

    Hello,

    I run quite a few instances of a single indicator, though all with different settings. As I do a lot of testing with temporary instances of the indie too, I would like for those instances to be able to programmatically load their settings from a file. Before I go re-invent the wheel, is there a supported or recommended way to do this? (rather like the template functionality, but programmatically)

    Thanks.

    #2
    Hello pjsmith,

    You could load values from a file using a C# StreamReader and assign these values to settings variables.


    I would recommend you do this in State.Configure. This would overwrite any values set by the user, so it may not be necessary for these to be public and are private variables instead.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you, Chelsea

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      563 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      329 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X