There is no compulsion on the duration for which a trade can be kept open. You can keep it open as long as you have sufficient free margin in the account.