building a trading system