The Config.xml file is located under Documents\NinjaTrader 7.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
EasyLanguage to NinjaScript
Collapse
X
-
and it does.
To save me having to learn xml in c#, can you help?
I have:
XmlDocument doc = new XmlDocument();
doc.Load( NTpath + @"\Config.xml");
XmlNode root = doc.DocumentElement["ConnectOptionsCollection"];
but I want to select "ExternalOpions"
and change false to true.
I know how to save the file.
Comment
-
Hello RobinT,
I would recommend taking a look at our sample on reading and writing to an external file at the following link: http://ninjatrader.com/support/forum...ead.php?t=3477
Comment
-
I am using my program to load NT and it uses:
Process.Start(NTpid);
while (Connected(0) != 0 ) { Thread.Sleep(200); }
to start NT and wait for it to be ready. Connected only works if the AT interface is enabled. Is there any way of disabling the AT interface or controlling the bootup state in Config.xml. I note the AT interface remains enabled during reboot if enabled so that is ok.
I know Config.xml is unsupported, but is there any documentation anywhere?
I change the <ConnectOnStartup>false</ConnectOnStartup>
to true and that works ok, except, it generates another external data feed entry. This is not a major problem but it would be nice if it didn't. Any ideas?
Comment
-
Hello RobinT,
Thank you for your note.
For the AT Interface in the Config, look for the following:
There is no documentation on the Config.xml.Code:<AutoTrade> <Enabled> <boolean>false</boolean> </Enabled> </AutoTrade>
I would not expect two connections in NinjaTrader for the External Data Feed. Can you provide details on where you are seeing this?
Comment
-
I dont seem to be able to send a screenshot as the dropdow menu disappears when i try to capture it. It is in the connect and disconnect menus. I can tell you that the system duplicates\;
<ConnectOptions xsi:type="ExternalOptions">
<Backup />
<ConnectOnStartup>true</ConnectOnStartup>
<DataConnection>true</DataConnection>
<Mode>Live</Mode>
<Name>External Data Feed</Name>
<PasswordEncrypted>5Ol2f/gJnQA=</PasswordEncrypted>
<Provider>External</Provider>
<SimOcoPartialFills>false</SimOcoPartialFills>
<User />
</ConnectOptions>
so that there are 2 of the above. This only happens when I turn
<ConnectOnStartup>true</ConnectOnStartup>
from false to true. Also I see
<DataConnection>true</DataConnection>
has been turned from false to true in the duplicate.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
601 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
559 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment