If my shares are in loss and i sell them so i get the rest of the amount or not?

If you sold the shares which are in your demat account then yes at whatever rate you have sold will be credited to your account.