How is the buy average calculated in Console?
Buy average for your holdings is calculated on a FIFO basis (first in first out) excluding intra-day trades.
This is explained with a simple example below, Let's assume your trades are as below:
So the buy average of ITC that would display in your holdings is - Rs 261 i.e (30*260) + (30*256) + (20*270) / (50+30-20+20).
To know how the buy average will be calculated when you trade intra-day in the stocks you hold, refer to this article.
Refer these posts for a more detailed explanation -
There are some scenarios where the buy average calculation shown on Console is incorrect. But this error will not impact your actual margins or Profit and loss. Refer to this article to know more.