Created interface and an implementation for stop trading on duration
constraints.