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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    238 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    4 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Working...
    X