Hey @explrorer ,
You cannot buy the same stock in MTF on day of selling that stock from your portfolio. You will need to buy the stock on the next day and can use the cash from the sale proceeds of the stock you sold. Please read this for more details.
Thanks,
Pranita
Product @ Dhan