# Average calculation

**URL:** https://tradingqna.com/t/average-calculation/20088
**Category:** Zerodha
**Created:** [September 10, 2017, 4:05pm UTC](https://tradingqna.com/t/average-calculation/20088 "2017-09-10T16:05:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sachinsm](https://tradingqna.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@sachinsm](https://tradingqna.com/u/sachinsm)
#### Post date: [September 10, 2017, 4:05pm UTC](https://tradingqna.com/t/average-calculation/20088/1 "2017-09-10T16:05:02Z")

</div>

Hi All,

**_Bit confusing here…_**

Suppose in Day1 if I brought 1 Lot of Nifty 10000CE @70 (Did not sell in same trading day - Holding for next day) and on next day ie Day2 I will buy again 1 Lot of Nifty 10000CE @80. Then my average will be 75 with 2 lots. Suppose If I sell 1 lot @70 then **whether day1 holdings execute first or day2 (Intraday) or anything** else please suggest.

---

<div class="post-metadata">

### Author: ![BharatW](https://tradingqna.com/user_avatar/tradingqna.com/bharatw/32/3886_2.png) [@BharatW](https://tradingqna.com/u/BharatW)
#### Post date: [September 10, 2017, 6:09pm UTC](https://tradingqna.com/t/average-calculation/20088/2 "2017-09-10T18:09:14Z")

</div>

> [@sachinsm](#):
>
> Suppose If I sell 1 lot @70 then whether day1 holdings execute first or day2 (Intraday) or anything else please suggest.

The Day 1 position will execute first. The exchange executes all trades on a FIFO basis(First In First Out basis). The position entered first will be sold out first.  
In your case, the 1 lot of Nifty 10K Call bought @70 on Day 1 will be sold out first. The other lot of Nifty 10k Call bought @80 on Day 2 will remain an open position with a buy price of 80.

---

<div class="post-metadata">

### Author: ![darshank](https://tradingqna.com/user_avatar/tradingqna.com/darshank/32/18462_2.png) [@darshank](https://tradingqna.com/u/darshank)
#### Post date: [September 11, 2017, 1:18pm UTC](https://tradingqna.com/t/average-calculation/20088/3 "2017-09-11T13:18:16Z")

</div>

> [@BharatW](#):
>
> The exchange executes all trades on a FIFO basis(First In First Out basis).

@BharatW Can you please share the link for this ?
