If I have added One Lakh Rupees in my Demat account and bought some share worth the same amount. If I sold the shares after few months and with a profit of Rs 50,000. The total money(150,000) is still in my demat account and not transferred into my saving account.
Do I still need to pay tax in this scenario? When are gains called released - when the stocks are sold with gains, or when the gains are transferred to saving account?