time based model for trading