Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EasyLanguage to NinjaScript

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

    RobinT,

    The Config.xml file is located under Documents\NinjaTrader 7.

    Comment


      OK what am I missing?
      I just changed
      <ConnectOptions xsi:type="ExternalOptions">
      <Backup />
      <ConnectOnStartup>false</ConnectOnStartup>
      to true

      and it all worked!

      Comment


        That would be it. The would enable the External Data Feed to connect on start up of the NinjaTrader Platform.

        Comment


          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


              Thanks, but I was hoping you knew how to navigate an xml file in c#.

              Comment


                You would handle it much like any text file. We do not have any code available for this functionality (that being altering the Config.XML) as it is not recommended.

                Comment


                  ok thank you

                  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:
                      Code:
                          <AutoTrade>
                            <Enabled>
                              <boolean>false</boolean>
                            </Enabled>
                          </AutoTrade>
                      There is no documentation on the Config.xml.

                      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


                          IF I delete the duplicate the system creates it again.

                          Comment


                            Hello RobinT,

                            Thank you for your response.

                            Are you changing the Config.xml through your code? As this is unsupported there would not be any expected behavior.

                            Comment


                              no i changed it with notepad,.

                              Comment


                                Do you know how to make it save data input via external. I tick the "save data as historical" box, but can I set it in config.xml?

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                599 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                344 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                103 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                558 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                557 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X