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 DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
6 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
||
Started by alifarahani, Today, 09:40 AM
|
6 responses
41 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
Comment