Example #1
0
        //called only once when we connect.
        public void init()
        {
            string[] tickers = new string[] { procSpread.productOne.Product
                                              , procSpread.productTwo.Product };

            market = Market.getInstance(tickers);

            SignalFactory factory = new SignalFactory(spread);

            signal = factory.create();

            signal.TradeEvt += this.OnTrade;
        }
Example #2
0
        //called only once when we connect.
        public void init()
        {
            string[] tickers = new string[] { procSpread.productOne.Product
                                             ,procSpread.productTwo.Product };

            market = Market.getInstance( tickers);

            SignalFactory factory = new SignalFactory(spread);
            signal = factory.create();

            signal.TradeEvt += this.OnTrade;
        }