Esempio n. 1
0
 private void OnTrade(object sender, TradeEventArgs e)
 {
     if (procSpread.Started)
     {
         for (int i = 0; i < spread.MultiplierSize; i++)
         {
             SendSpreadOrder(e.ACTION, true);
         }
     }
 }
Esempio n. 2
0
 //The event-invoking method that derived classes can override.
 protected virtual void OnTradeEvt(TradeEventArgs e)
 {
     // Make a temporary copy of the event to avoid possibility of
     // a race condition if the last subscriber unsubscribes
     // immediately after the null check and before the event is raised.
     EventHandler<TradeEventArgs> handler = TradeEvt;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Esempio n. 3
0
        //The event-invoking method that derived classes can override.
        protected virtual void OnTradeEvt(TradeEventArgs e)
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            EventHandler <TradeEventArgs> handler = TradeEvt;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 4
0
        private void OnTrade(object sender, TradeEventArgs e)
        {
            if (procSpread.Started)
            {
                for (int i = 0; i<spread.MultiplierSize;i++ )
                {
                    SendSpreadOrder(e.ACTION, true);
                }

            }
        }