Can i invest in a company for long and short term at same time in Zerodha?

I buy a share at multiple price. One it’s go beyond by average price that day i want to sell 50% of my share and want to book 50% profit and for remaining 50% i want to wait.
But if i check my p&l it not book 50% profit other than book loss. That’s why ask.
Otherwise if zerodha give me option to choose stock strip for selling. It’s easy for us to sell lower price share right now and wait for higher price little more.


  1. For buy through smallcase, smallcase also charge some fee that’s not a big issue.
  2. If i have already that share at higher price that i buy through smallcase at the end it buy through kite and kite show average price and i want to sell only smallcase share in that case it also sell through kite and kite follow FIFO it sell my higher price share that i want to wait longer and want to book profit for my short term. Smallcase only help to show the short term portfolio p&L separately nothing else.
    Behind the scenes problem still remain.

Bhai, ek fokat ki salah!
Plz study before wasting time and money in trading or investing.
You currently can’t even grasp basics of the stock market.

Shares are not like Jeans Pants. Mahengi wali jeans is better than Cheap wali.
Shares you buy at 200 is same as share you buy at 100.

Suppose you have bought 100 shares for 100 rs and 100 shares for 200 rs. All 200 shares are same with avg price equal to 150rs. Now if you sell 100 shares for 125 that means you are booking losses. It doesn’t matter which shares you sold.


Pura depress kar diya Data Scientist bhai aapne mujhe.
Suicide ke vichar aane lage hai ab toh!

1 Like

Well, that is the reason we have F&O segments in market. Alternatively, keep your long term investments in a separate demat account, and dedicate one for trading.

Don’t mix it up unless you have some research or a problem solving goal with regards to how order sytem math works.

Meri wahjah se Suicide mat karna warna bhut problem ho jayegi.

1 Like

You’r right with basic math. Average price is 150 and selling below average price means booking loss , that’s you want to teach me basic of stock market.

Think about background math behind 100 share on 100 price at price 125 give 25 profit on each share and 100 share on 200 price at price 125 give 75 loss on each share. But both are not realized profit or loss. and time has it’s own worth that increase or decrease share value.
If you sell 100 share on 125 then you think you book loss 25 each share but in background if you check your p&l you book 75 loss on each share and now your average price is not 150 it 100 now because zerodha sell in FIFO order.

In your case you sell 100 share and book loss of 75 each share right now and another 100 share you increase profit when price go above 125 and decrease profit when price go below 125.
In my case I want to sell 100 share and book profit 25 each right now and another 100 share I decrease loss when price go above 125 and increase loss when price go below 125.
But i assume that price go up but I want to cash some part of share that not give the realized loss right now that’s the difference of thing.
That’s why i ask this question.
Can i do this with zerodha.
You’re more intelligent that’s not a doubt and your profile tell this clearly. Below the basic math for your understanding.

In this case you calculate loss (125-150)×200 and i calculate like (125-100)×100+(125-200)×100
In both case loss are same but which part you selling make your realized p&l and other part you give time value to increase or decrease price.
In zerodha case they force you sell like FIFO because they don’t want to do complex math.

Nothing like complex math, we do that because that is the right way to do.

FIFO method is used because those are the rules set by GOI -

I think you likely got confused because of the other thread that I quoted above - Portfolio-average price and p&l on kite.

Regarding that specific thread, I am also curious about how a broker can provide a share lock-in facility if it ends up violating FIFO. As FIFO needs to be followed always, is the share lock-in facility only for show? (That specific thread has become a little confusing because the user that asked the question (@Gautam) has left the forum and their replies on the forum have been deleted. Only quoted parts of their reply remain. If I remember correctly, the broker they mentioned was HDFC Sec, which provides a lock-in share facility).

Right now i got my answer, there not any way to do that but by curiosity i ask this question.

Thanks all you guys to clarify my doubt.

Ok and thanks @siva but you guys not do in other permutation and combination according to user preferences if user want to do this.

No, we believe this is the right and most conservative way to do things. Filing taxes and all is up to user.

Bhai wohi samjhane ki koshish kar raha hoon.

Once you buy baingans at two different dates and two different prices and ghar pe aake ek hee topli mein daal diye.
Phir 2-3 din baad baingan ka bharta karna hai to koi bhi baingan utha lo! You cannot distinguish between them.

Shares ke upar MRP printed hoti hai kya?
When you buy shares do you note down share certificate number?

If you buy for 100 rs first and for 200 rs later.
you buy for 200 rs first and for 100 rs later.

Even with Zerodha FIFO - they will still show loss is you sell for 125 because you are in a loss.

After buying for long term, pledge those stocks for margin. This locks up these shares. Then buy and trade the short term stocks for as long as you like. You will only be able to sell the long term stocks after unpledging. I know its not ideal and doesn’t work for all stocks but its a good workaround nonetheless.

1 Like

good idea @Ravi_Shelly but it does not always work.

No, this won’t work, buy avg is still based on FIFO.


If you buy 50 share @ 100 and then buy 50 shares @ 110

Average price for 100 share will be 105.

Now if you sell shares ( which you bought at 110 ) at 108 you book 3 rupees profit right ?

No, if you sell all the 100 shares you’ve purchased, 50 shares (bought at 100) will be in profit of Rs. 8, while 50 shares (bought at 110) will be in Rs. 2 loss. You can read this article to know how buy average is calculated.

I read FIFO article after I post my last comment.

I asked you if I sell 50 shares. ( Now I know first shares will be sold). So I will book 8 rupees profit.

What will be the price of remaining 50 ?

Do I have to sell those above 110 ? To book profit ?

The buy average of 50 shares will change to 110 (this is the price you bought them at). To earn profit you’ll have to sell these shares > 110.