added a trend class to simplify some of the calculation done by the
advances trader class