PSX Tracker guide
FIFO cost basis on the Pakistan Stock Exchange
When you sell shares, which lots did you sell? Pakistan Stock Exchange investors often use first-in, first-out (FIFO) thinking for cost basis. Here is how that shows up in a portfolio tracker.
What FIFO means
FIFO matches each sale against your oldest remaining buy lots first. That keeps a clear trail from purchases to sells and avoids mixing newer high-cost buys into an earlier sale.
Why it changes your numbers
Average cost, unrealized gain and realized profit all depend on which lots are closed. Selling older cheap lots can realize more gain than selling recent expensive lots — even at the same sale price.
Same-day trades
Buys and sells on the same day are often squared off before they distort long-term average cost. PSX Tracker models day-trade squaring so intraday churn does not quietly ruin your basis.
Fees in the cost
Broker commission, sales tax and CDC charges belong in what you paid per share. Including fees in cost basis keeps break-even and P&L closer to what you actually spent.
How PSX Tracker helps
Enter buys, sells and fees once. The app applies FIFO lot matching and shows open holdings, realized trades and totals you can export and check against broker statements.
Important limits
This guide is educational and describes how PSX Tracker works. It is not investment, tax or legal advice. Confirm rules and figures with your broker, FBR guidance and professional advisors.
Related guides
Capital gains tax basics for Pakistani stocksImporting broker trades into PSX Tracker