There are 2 ways of trading
Intraday : where you don't take delivery of the stock and compulsorily square off your position the same day. You can short or long in this segment.
Delivery based : where you take delivery of the stock and end up squaring off your position from the next day to whenever you like. You compulsorily go long in this segment