updated advanced trader with new MarketTrend class