You can sell your shares from one Demat to another Demat account. To sell shares automatically, you can request the delivery instruction slip from the agent. Then, you can have your shares once you fill out the form. Then, you can submit that to the agent to whom you want to sell the shares..