Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Connection to ATI on WIN 7

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

    Connection to ATI on WIN 7

    Hello every one! I ve already connection to Zen Fire. And i have no problem with connection to NT7 on WIN XP. But i ve installed WIN 7 32 bit and got this error

    SaveImg позволит вам загрузить фото или картинку бесплатно и без регистрации


    Last edited by qpile; 12-16-2010, 11:40 AM. Reason: no picture in post

    #2
    Hello qpile,

    You can post images to this forum directly. When creating a post, click the paper clip icon to add attachments.

    In order to use ATI, you must check the AT Interface option under the File menu.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello qpile,

      You can post images to this forum directly. When creating a post, click the paper clip icon to add attachments.

      In order to use ATI, you must check the AT Interface option under the File menu.
      I do not know but i ve got the same error
      Attached Files

      Comment


        #4
        You should look into your security software or antivirus programs. Try with all these types of programs disabled to isolate if they're contributing to this connection issue.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          I ve got the same error

          May be problem in my code?
          using System;
          using System.Collections.Generic;
          using System.ComponentModel;
          using System.Data;
          using System.Drawing;
          using System.Linq;
          using System.Text;
          using System.Windows.Forms;
          using System.Threading;

          namespace Program
          {
          public partial class Form1 : Form
          {
          public Form1()
          {
          InitializeComponent();
          }

          private void button1_Click(object sender, EventArgs e)
          {
          string inst = "ES 03-11";
          string input1;
          string input2;
          double last = 0;
          int connStatus;
          bool getData = false;
          int myCounter = 0;

          NinjaTrader.Client.Client NTClient = new NinjaTrader.Client.Client();

          //Console.WriteLine("Connect to Ninja Trader? y/n");
          input1 = "y";

          switch (input1)
          {
          case "y":
          getData = true;
          NTClient.SubscribeMarketData(inst);
          break;

          case "n":
          getData = false;
          richTextBox1.AppendText("Ok. Bye. Press <ENTER> to terminate program...\n");
          // Console.WriteLine("Ok. Bye. Press <ENTER> to terminate program...", input1);
          input2 = Console.ReadLine();
          break;

          default:
          getData = false;
          richTextBox1.AppendText("ERROR: Your input {0} is incorrect. Press <ENTER> to terminate program...\n");
          // Console.WriteLine("ERROR: Your input {0} is incorrect. Press <ENTER> to terminate program...", input1);
          input2 = Console.ReadLine();
          break;
          }

          connStatus = NTClient.Connected(0);
          if (connStatus == 0 && getData == true) richTextBox1.AppendText("Connected to NinjaTrader\n");
          else if (connStatus != 0 && getData == true)
          {
          getData = false;
          richTextBox1.AppendText("ERROR: Can not connect. Press <ENTER> to terminate program...\n");
          input2 = Console.ReadLine();
          }

          if (getData)
          {


          last = NTClient.MarketData(inst, 0);

          richTextBox1.AppendText(inst + " Last Price: " + last + "\n");

          richTextBox1.AppendText("Logging off in 10 secs");
          while (myCounter <= 10)
          {
          Thread.Sleep(500);
          richTextBox1.AppendText(".");
          myCounter++;

          }

          NTClient.UnsubscribeMarketData(inst);
          NTClient.TearDown();
          }

          if (!getData)
          {
          NTClient.UnsubscribeMarketData(inst);
          NTClient.TearDown();
          }

          }
          }
          }

          Comment


            #6
            Does this work properly one one computer but no another? What is setup differently in your Windows 7 machine compared to your XP machine? Do you have different routers or firewall setup?
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Add Using NinjaTrader.Client at the top.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              88 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              48 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              31 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              34 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              68 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X