This project is read-only.

OnAdvice glitch

May 6, 2011 at 3:00 PM

private void StartQuotes()
        {
            using (DdeClient client = new DdeClient("MT4", "QUOTE"))
            {
                client.Connect();
                //for (int i = 0; i < numSymbols; i++)
                //    client.StartAdvise(symbols[i], 1, true, 60000);
                client.StartAdvise("EURUSD", 1, true, 60000);
                client.Advise += OnAdvise;
            }
        }

        private void OnAdvise(object sender, DdeAdviseEventArgs args)
        {
            string[] data = args.Text.Split(' ');
            Single bid = Convert.ToSingle(data[2]);
            Single ask = Convert.ToSingle(data[3]);

}

 

Here is the sample, after some time events not come in in VB6 all OK

What to do ?