PSX • TRANSACTION RECORDKEEPING

PSX Trade Journal & Realized Profit/Loss Tracker

Maintained by · Calculation methodology

Record your Pakistan Stock Exchange share purchases and sales, track remaining quantity and average cost, and estimate realized and unrealized profit or loss from your own transaction records.

Important: This is a personal tracking tool, not a broker statement, live-price service, or official tax calculator. It uses a moving average-cost method for each ticker. Tax rules and broker reporting methods may differ; reconcile records independently.

Add a transaction

\n

Import a Calcora CSV backup or a CSV with headers: Date, Ticker, Type, Quantity, Price per share PKR, Charges PKR. Reference-price rows from Calcora exports are also supported. Review the file before importing.

Current prices (optional)

Enter a current reference price to estimate unrealized P/L for holdings. These prices are not fetched automatically.

Invested cost of open holdingsPKR 0.00
Current value of priced holdingsPKR 0.00
Unrealized P/LPKR 0.00
Realized P/L (closed portions)PKR 0.00
Recorded buy chargesPKR 0.00
Recorded sell chargesPKR 0.00

Holdings by ticker

TickerShares heldAvg. cost/shareCost basisReference priceMarket valueUnrealized P/L
Add a transaction to begin.

Transaction history

Entries are processed by trade date; entries on the same date retain their recorded order. A sell that exceeds the shares held at that point is flagged and excluded from the ledger calculations until corrected.

DateTickerTypeSharesPriceChargesRealized P/L on saleAction
No transactions yet.

Browser storage is used on this device when available. Export a CSV backup before clearing browser data or changing devices.

Portfolio data-quality audit

Run a read-only check before relying on journal totals. The audit flags possible duplicate trades, sells that exceed recorded holdings, same-day transaction-order ambiguity, missing reference prices and prices saved for tickers with no open position. It never deletes or edits trades automatically.

Transactions0
Potential duplicates0
Invalid sales0
Same-day reviews0
Holdings unpriced0

Audit runs automatically. Review warnings against broker contract notes; a flag is not proof of an error.

How the PSX trade journal calculates profit and loss

For a buy, the calculator adds the purchase value and entered buy charges to the ticker's open cost basis. It then calculates a weighted average cost per share. For a sale, it allocates the current average cost to the shares sold and subtracts entered sale charges from sale proceeds. The difference is the estimated realized profit or loss for that sale.

For example, buying 100 shares at PKR 100 with PKR 50 charges creates a PKR 10,050 cost basis, or PKR 100.50 per share. Selling 40 shares at PKR 110 with PKR 30 charges gives PKR 4,370 net proceeds and PKR 4,020 allocated cost, so the estimated realized profit is PKR 350. Remaining shares retain the average cost basis.

Results depend on accurate quantities, dates, prices and charges. This ledger does not model bonus shares, splits, rights issues, withholding tax, dividend cash flows, settlement corrections or broker-specific tax lots. Update records to reflect corporate actions before relying on any comparison. Use your broker statement as the source of record.

Related PSX tools

PSX Investor Calculator Hub · PSX Portfolio Calculator · Position Size Calculator · Stock Comparison Calculator · PSX Profit Calculator

Frequently asked questions

Does this tool fetch my broker transactions?

No. All transactions and reference prices are entered manually; the page does not connect to a broker or download market data.

Is realized profit the same as taxable capital gain?

Not necessarily. This tool uses moving average cost for personal tracking and does not claim to implement official tax treatment. Check current official guidance and your broker's tax records.

Where is my data saved?

The journal attempts to save entries in local storage in this browser on this device. Export a CSV backup regularly. If browser storage is disabled or cleared, the journal may not persist.

Can I use it for a stock recommendation?

No. Past trades and arithmetic estimates do not indicate whether a share is suitable or likely to rise. Consider risk, liquidity, valuation and your own circumstances.

How the PSX trade journal calculates results

The journal is a personal record-keeping aid, not a broker statement. It calculates a running average cost for each ticker from recorded purchases and applies that cost method to shares sold. Realised profit/loss is therefore an estimate under the journal’s moving-average approach; it may not match a broker’s tax-lot report or the method required for a particular tax filing.

Keep the ledger auditable

Enter trade dates, ticker symbols, whole-share quantities, prices and transaction charges from your contract notes. Reconcile the ledger against broker statements regularly, especially after partial sells, transfers between brokers or corrections to a past transaction. If you import a CSV, check the column headings and inspect the imported rows before relying on the totals. Keep a separate copy of important records before using replace or clear options.

What the journal does not infer

The journal does not connect to a broker, fetch live prices, determine the tax treatment of a trade or automatically reconstruct every corporate action. Dividends, bonus shares, rights issues, splits, withholding tax and other events may require separate records or a broker-provided cost-basis adjustment. Optional reference prices create scenario estimates for open holdings; they are not exchange quotes.

For a single trade, use the PSX Profit Calculator. To compare the portfolio’s holdings and allocation, open the PSX Portfolio Calculator. Always treat saved or exported data as a personal record and protect files that contain your trading history.

How to audit a PSX trade journal before trusting its totals

A running ledger can look precise while still being wrong if a trade is missing, duplicated or entered out of sequence. Treat the journal as a working record and your broker's contract notes and statements as the reconciliation sources. Keep a separate backup before importing, replacing or clearing data.

Reconciliation sequence

  1. Confirm identity: check ticker spelling, trade date, buy/sell side, executed quantity and price against the original contract note.
  2. Reconcile money: compare gross trade value and every recorded charge with the contract note. Do not enter a charge twice if it is already included in the value field.
  3. Check share balance: calculate opening units plus purchases minus sales. A negative holding usually signals a missing purchase, incorrect date/order, transfer or corporate action that needs investigation.
  4. Check partial sales: verify that the cost allocated to sold shares is based on the method the journal actually uses. This page uses a moving-average tracking method; it is not an official tax-lot engine.
  5. Review imports: inspect required column headings, date formats, decimal separators, duplicate rows and row counts. Compare totals before and after import, especially if using a replace option.
  6. Reconcile cash separately: dividends, deposits, withdrawals, taxes and other cash movements are not the same as buy/sell trades. Keep evidence for each item and do not assume a trade-only ledger represents the full portfolio return.

Worked partial-sale example

Suppose a ledger records 100 shares bought at PKR 100 and 100 more at PKR 120, with no charges included. The combined quantity is 200 and the weighted average is PKR 110. If 50 shares are sold at PKR 130, gross proceeds are PKR 6,500 and the simplified average-cost allocation is PKR 5,500, giving PKR 1,000 before sale charges and tax. The remaining 150 shares retain PKR 16,500 of cost under this simplified method. This arithmetic is illustrative and should not be mistaken for a broker's official tax calculation.

Corporate actions and privacy

Bonus shares, rights issues, splits, mergers, transfers between brokers and corrected contract notes may require adjustments that a simple trade ledger cannot infer. Document the event and reconcile the resulting quantity and cost with the broker or relevant official record. Journal data is stored in this browser when local storage is available; it is not a substitute for a secure, independently backed-up financial record. Protect exported CSV files because they may reveal your trading history.

Use the Average Price Calculator to check a simple cost average, the Stock Comparison Calculator for matched historical scenarios, and the PSX Investor Calculator Hub to choose a tool for a different question.