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.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Adding to config XML file
Collapse
X
-
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.Tags: None
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
238 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
4 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
125 views
0 likes
|
Last Post Today, 12:03 AM |
Comment