# Selling old holding shares and Buying same shares on same day in CNC?

Hi All,
I was holding shares of ZenTech Company of 100 quantity which was bought one month back ago.
Here is the complete Picture:
Date: Company Quantity BuyPrice Total Val
31/10/2017 ZenTech 100 87 8700

After some days 11/11/2017 , i sold the same shares and bought them on same day.

Date: Company Quantity SellPrice Total Val
11/11/2017 : 10AM ZenTech 100 107 10700

Again i bought on the same day

Date: Company Quantity BuyPrice Total Val
11/11/2017 : 1pm ZenTech 200 108 21600

What should be my Avg Value of the shares of 200 ZenTECH?
As per Zerodha, its avg buy value is 88.91 ??
But for me now the buy value should be same as i bought on 11th , i.e 108.

is it ok to sell the holding shares (CNC) and buy on the same day same shares in CNC?
this should not be considered as intraday , as i chose CNC while doing transaction.

The 100 shares sold and bought back on 11 Nov will be considered an intraday trade and your intraday loss is 100. The additional 100 shares bought at 108 will add to your initial holding of 100 bought at 87.

So now in holdings, you have 100 shares at 87 and 100 shares at 108. Total 200 shares at an average of 97.50.

Even if you sell in CNC, and buy it back in CNC on the same day, it will be considered an intraday trade. If you buy back more than you sell, then the additional shares will add to holdings. If you sell more than you buy back, then the extra sell will be sold from initial holdings. If you just sell, then it will see out from holdings.

how to calculate the profit in this case?

Date: Company Quantity BuyPrice Total Val
31/10/2017 ZenTech 100 87 8700
sold price:
Date: Company Quantity SellPrice Total Val
11/11/2017 : 10AM ZenTech 100 107 10700

profit : 107-87=20*100=2000

bought once again at 108:

Date: Company Quantity BuyPrice Total Val
11/11/2017 : 1pm ZenTech 200 108 21600

(107-108)*200= -200

Overall = 2000-200=1800
is that correct way to calc profit?

Hi @nrhayyal
as u bought shares on 31st and sold it on 11/11 so to debit shares from Demat it takes t+2 days so when u took the new position on 11/11 say at 108 so your buy avg price will be 108. so the rule followed is FIRST IN FIRST OUT (FIFO) rule. so u made the profit of 2000rs in first case, and the shares bought at 108 above 108 rs is your profit.