Implemented configurable trend trading logic