Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Load template via Ninjascript

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

    Load template via Ninjascript

    Hello,

    While most parameters can be set via the initial call to create an instance of an indicator, it's often the case that some are not, particularly on indies with a lot of settings. Also, a lot of settings is a royal pain, as not only is it complex to maintain, make 1 new parameter available and you are left updating all your strategy scripts, etc.

    My idea is instead to load the settings template. I.e. setup your indie on chart, save the settings template, but have ninjascript code in your strategy etc., load the settings for the indie from the template, or initiate the load of the indie with that template file, rather than attempting to set all the settings traditionally. I hope this makes sense.

    How can this be done?

    Thanks.

    #2
    Hello pjsmith,

    There are not any NinjaScript tools for this so this would require a custom C# approach.

    You may be able to XElement.Load() the template which is an Xml file and then loop through the Elements.

    This thread will remain open for any community members that would like to provide unsupported code or direction.

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    608 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    355 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    560 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    561 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X