//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; }
//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; }