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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Working...
      X