Ejemplo n.º 1
0
        public Stack stkTrades; // stack the trades so oldest at the bottom based on retrieval from iqfeed



        public HistoryState(
            GetHistory gh
            )
        {
            this.gh   = gh;
            trades    = new TradeArray();
            quotes    = new QuoteArray();
            stkTrades = new Stack(2000);
            dtstk     = new DateTime(0);
            Init();
        }
Ejemplo n.º 2
0
 public void Close()
 {
     gh         = null;
     instrument = null;
     bs         = null;
     bars       = null;
     trades     = null;
     quotes     = null;
     stkTrades  = null;
     bufSock.Close();
     bufSock = null;
 }