Your buying power will reflect the cash you have available to invest, including any deposits available for use and proceeds from selling your investments. If you sell a position, the proceeds will be added to your buying power.
If you have margin trading enabled on your account, available margin will be included in your buying power.
Related Articles
Where can I view my buying power?
What is buying power?