Can I keep my trading account open and close my demat account?

In order to keep your trading account functional, you need to have at least one demat account linked with it. If you have several demat accounts linked to your trading account, then you can close the extra demat accounts and keep one linked to the trading account.