What will happen to the amount lying in my trading account if I close my trading account?

Once your trading account is closed, the amount will be transferred to the linked primary bank account within 1-2 trading days.