I have a position of 18k in a stock
yesterday it dropped from -20%
I bought 6k more at a lower price
Today it's up 20%
If I sold 6k of this stock would I earn profit since those stocks were bought below my old cost basis?
I'm confused about how this works. Which stocks are sold first? or do they all just pool together?