Real trades often fill in pieces — you scale into a position and trim out of it. Ledger of Alpha records those as legs and computes average-cost entry/exit and blended realized P&L for you.
Turning on the legs editor
- On the trade entry page, toggle Scale in / out in the order ticket.
- Add entry fills and exit fills as separate rows — each with its own price, quantity, and fees.
- A live summary shows your average entry, average exit, filled vs. open quantity, and realized P&L.
How the numbers work
Entry and exit are average-cost weighted across your fills. Realized P&L is computed on the closed quantity only, so a partially-closed trade shows realized profit on what you've exited and unrealized on what's still open.
Fees on a scaled trade
Each fill carries its own fee, and the trade's fee is their sum. The box asks for whatever unit your asset class is charged in, and the column header says which: on stocks, forex and crypto it is that fill's total in dollars; on futures, commodities and options it is a rate per contract, multiplied by the fill's size. Same rule as the single-fill Commission box — see How commissions and fees work.
Those fills are the only fee source for a scaled trade: the account's default commission is switched off while Scale in / out is on, which is why the Commission box greys out and reads “Set per fill above”. The summary's Fees figure is the running total, shown beside the realized P&L it has already been taken out of.
The Trade Result card and the Realized figure in the fills summary are therefore always the same number. If you saw them disagree on a scaled trade before September 2026, the card was the one at fault — the saved trade, the trades table and every report have always used the fills' fees, so nothing you recorded needs correcting.
A partly-closed position
Once you have taken partial profit, a trade has two sizes: what you entered and what is still open. Everywhere a position is valued — the dashboard's Holdings, portfolio value, cost basis and unrealized P&L — uses the open quantity only, and the trade shows the profit you have already banked as realized. On a phone the trade list reads ×80 · 50 open with the realized figure beside it, and the trade's detail reads 50 of 80 open.
Fixed 11 Sep 2026: after a partial exit, the dashboard's Holdings table and the mobile trade list and detail still showed the whole entered size — 80 shares, and the cost basis and unrealized P&L of 80, for a trade that had sold 30 — and the mobile screens hid the realized profit. The hold time on an open trade also read too long (it counted from midnight UTC instead of your entry time). Your fills were recorded correctly throughout and nothing needs re-entering; the screens now read them right.
From imports
Multi-fill trades imported from a broker CSV or auto-sync preserve their legs automatically — you don't need to rebuild them. See Importing a CSV file.