in case the intraday trader does not square off their buy position, the shares will be treated as delivery trade in the event of enough margin otherwise they will be squared off. In case of a sell position, the trader cannot buy back the shares and if they are held in the Demat account, the same will be transferred to the exchange. If the trader does not have such shares in their Demat account they will have defaulted on their sell trade.