fixed a bug with the market data class that was causing all dates to
pull with the same information.

updated some basic trend testing for the advanced trading class