Portfolio Buy / Sell

Dear Team, Is it possible to sell the complete portfolio in one click and buy back later ? Second, Can we have average cost of a stock after buy and sell. Example: I buy a 100 shares for Rs 100. Later I sell 50 shares at 200. With this my actual cost on that share is zero. Balance 50 shares are free now. Later I buy same 50 shares sold earlier at 200 bought back at 150. Now my actual average cost will be Rs 75 per share. At present, we are doing it manually.

What you are explaining is an algo. You can do the following 2 things
1: Maintain an Excel to tell you how many units to sell and what the current average price is. You can use Google Sheets and integrate Google Finance to get the latest price for calculations. Current units and the scrip name will be a manual input.
2: Use Dhan’s Trading APIs which you can find here and write code using them to do the same thing.

No. I am not talking about algo and I know nothing about coding. Since all activities are available there in the database, may be a report or an additional column in the trading portfolio will be helpful.

When I mentioned that we are tracking manually means, I have a google sheet and updating it manually and tracking it using the google finance formula. But it takes lot of time.

So, sorry that the reply not satisfactory

Dear team,

At present, if I feel that my portfolio return is good and want exit in full, I have to manually select and sell individually. Later if I have to buy, I need to do it again select individual stock and buy. Even if I use basket, one basket can handle 20 counters. At least , if there is an option to select multiple and execute, just like available in option chain, it would help a lot.

The new feature, “sold” is good.

1 Like

Hi @CA.KSB,

Thank you for sharing your thoughts. We’ve noted your suggestion to add a select feature in the portfolio for exiting multiple stocks in one click.

Do note that you can also use Basket Orders for selling scrips. For buying, we will explore more possibilities to execute orders directly via the watchlist.

Hi @CA.KSB Yes, got what you are trying to achieve. However, we have to follow rules prescribed by Income Tax about securities and its pricing, which is FIFO - first in first out for taxation purpose.

What you are trying is the classic - I have taken my principal amount out of the stocks.

I agree. Do not change it. Just try to add a report which shows net average cost or avg buying price . So that we don’t need to maintain a excel sheet manually with date, quantity traded and price applied