Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding to config XML file

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

    Adding to config XML file

    I notice that in \Documents\NinjaTrader 8 there is a config XML file. Is it ok to add to this file?

    My script uses System.ServiceModel, and I need to feed it parameters like maxBufferSize through XML in the config file. Not sure how else it could get it these parameters it needs.

    #2
    Hello MM345,

    I would not suggest trying to modify the config file. In case there was an error, this could cause a users settings, connections, license, and other important information to be disrupted or cause issues in the platform. It would be best to leave this file for the platform to use exclusively.

    If you need to use an xml file for settings for your custom item, it would be suggested that you implement your own xml deserialization to load from your own file. Because NinajScript is just C#, this could be accomplished using the standard xml tools in C# which there are many tutorials for online.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    182 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    335 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    259 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    358 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    188 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X