Esempio n. 1
0
 void tl_gotTick(Tick t)
 {
     try
     {
         _tlt.newTick(t);
         _kt.newTick(t);
         if (spillTick != null)
         {
             spillTick(t);
         }
         RefreshRow(t);
         BarList bl = null;
         if (bardict.TryGetValue(t.symbol, out bl))
         {
             if (SecurityImpl.Parse(t.symbol).Type == SecurityType.CASH)
             {
                 Tick    k = _kt[t.symbol];
                 decimal p = usebidonfx ? k.bid : k.ask;
                 int     s = usebidonfx ? k.bs : k.os;
                 bardict[t.symbol].newPoint(t.symbol, p, k.time, k.date, s);
             }
             else
             {
                 bardict[t.symbol].newTick(t);
             }
         }
     }
     catch (System.Threading.ThreadInterruptedException) { }
 }
Esempio n. 2
0
 void tl_gotTick(Tick t)
 {
     // heartbeat
     _tlt.newTick(t);
     // use full symbols if required
     if (RewriteSecuritySymbols)
     {
         Security sec;
         if (allbaskets.TryGetSecurityAnySymbol(t.symbol, out sec))
         {
             t.symbol = sec.FullName;
         }
     }
     // update quotes
     if (gti != null)
     {
         gti.GotTick(t);
     }
     // update response
     if (rtick != null)
     {
         try
         {
             rtick.GotTick(t);
         }
         catch (Exception ex)
         {
             debug(rname + " got tick error: " + ex.Message + ex.StackTrace + " on tick: " + t.ToString());
             status(rname + " tick error, see debug for details.");
         }
     }
 }
Esempio n. 3
0
 void tl_gotTick(Tick t)
 {
     _ta.newTick(t);
     _tlt.newTick(t);
 }