Ejemplo n.º 1
0
        private bool CreateIQFeed()
        {
            bool success = true;

            iqFeed = new IQFeed();
            //iqFeed.IQStatusChanged += new EventHandler<IQFeedEventArgs>(iqFeed_IQStatusChanged);
            if (iqFeed.Connect())
            {
                iqFeed.IQSummaryMessage += new EventHandler<IQSummaryEventArgs>(iqFeed_IQSummaryMessage);
                iqFeed.IQUpdateMessage += new EventHandler<IQSummaryEventArgs>(iqFeed_IQUpdateMessage);
                iqFeed.IQTimeMessage += new EventHandler<IQTimeEventArgs>(iqFeed_IQTimeMessage);

                //for (int index = 0; index < 100; index++)
                //{
                //    Application.DoEvents();
                //    if (connectDone.WaitOne(100, false))
                //    {
                //        break;
                //    }
                //}
            }
            else
            {
                lastError = "Unable to connect.";
                success = false;
            }

            return success;
        }
Ejemplo n.º 2
0
        public SymbolSearchForm()
        {
            InitializeComponent();

            dfSymbols = IQFeed.dfReadMarketSymbolsFile();
        }