Beispiel #1
0
        void _tlt_GotConnect()
        {
            try
            {
                if (_tlt.tw.RecentTime != 0)
                {
                    debug(_bf.BrokerName + " " + _bf.ServerVersion + " refreshed.");
                    status(_bf.BrokerName + " connected.");
                }
                // if we have a quote provider
                if ((_bf.ProvidersAvailable.Length > 0))
                {
                    // don't track tradelink
                    if (_bf.BrokerName == Providers.TradeLink)
                    {
                        _tlt.Stop();
                    }

                    // if we have a quote provid
                    if (mb.Count > 0)
                    {
                        subscribe();
                    }
                }
            }
            catch { }
        }
Beispiel #2
0
 void _tlt_GotConnect()
 {
     debug(tl.BrokerName + " " + tl.ServerVersion + " connected.");
     status(tl.BrokerName.ToString());
     try
     {
         // resubscribe
         if (mb.Count > 0)
         {
             tl.Subscribe(mb);
         }
     }
     catch { }
     if (tl.BrokerName == Providers.TradeLink)
     {
         _ta.Stop();
         _tlt.Stop();
     }
 }