Beispiel #1
0
        // public event FillEventHandler OnFill;
        public SystemManager03()
        {
            m_Matcher = new TradeMatcher(RoundTurnMethod.FIFO);

            // Create a new Instrument object.
            m_Instrument = new Instrument();
            m_Instrument.OnInstrumentUpdate += new InstrumentUpdateEventHandler(OnInstrumentUpdate);
            m_Instrument.OnFill += new FillEventHandler(OnInstrumentFill);

            // Create a new SortedList to hold the Tick objects.
            m_TickList = new List<Tick>();

            m_Position = 0;
            m_Go = false;
            m_Qty = 0;
        }
Beispiel #2
0
 public void ShutDown()
 {
     m_Go = false;
     m_Instrument.ShutDown();
     m_Instrument.OnInstrumentUpdate -= new InstrumentUpdateEventHandler(OnInstrumentUpdate);
     m_Instrument.OnFill -= new FillEventHandler(OnInstrumentFill);
     m_Instrument = null;
 }