Compare each fill confirmation with the plan you wrote before entry
When your broker emails a fill confirmation, a parser or a pasted copy turns it into a row, and a script compares quantity, price and side with your written plan. Typing errors and size slips show up the same day.
How it works
- Keep each trade plan as a row before entry: position label, planned quantity, planned entry zone (low and high), planned stop, and the risk in account currency your sizing script produced.
- Route your broker's fill confirmation emails into a label with a Gmail filter. Either forward them to a Zapier Email Parser mailbox that writes the fields to a sheet, or paste each confirmation into a chat assistant that extracts only the fields you name.
- A sheet formula or script compares each fill with its plan: quantity against planned quantity, fill price against the planned zone, and the risk at the actual fill and planned stop against the planned risk.
- Any fill outside your stated tolerances is flagged, for example quantity off by more than zero shares or risk more than 10% above plan. You set the tolerances.
- That evening you read the flags and write what happened in your journal: a typing error, a deliberate change, or a fill outside the zone you accepted.
Copy-paste prompt
Extract fields from the broker confirmation below. Don't give advice or comment on the trade.
Return only: confirmation_date_time, position_label (use my label map {{label_map}}), side, quantity, average_fill_price, fees, currency. If a field isn't in the email, write MISSING. Don't infer it.
Then compare with my plan row {{plan_row}} (planned_quantity, zone_low, zone_high, planned_stop, planned_risk) using these exact formulas and show each calculation:
fill_risk = quantity × (average_fill_price − planned_stop)
quantity_diff = quantity − planned_quantity
in_zone = zone_low ≤ average_fill_price ≤ zone_high
Flag anything outside {{tolerances}}.
Confirmation text: {{confirmation_text}}Guardrails
- The check runs after the fill and reads your own emails or pasted text; it has no broker connection and never places orders.
- Fields not present in the confirmation are marked MISSING, never estimated.
- Prefer the sheet formula for the comparison; if the assistant does the arithmetic, it must show each calculation so you can check it.
What can go wrong
Broker emails change format without notice, and a parser trained on one template silently put the fee in the price field after an update. A daily row count against the confirmations in the label, plus a sanity rule that the fill price sits within a few percent of the planned zone, caught it. Partial fills arrive as several emails, so group them by order before comparing with the plan.
Why it helps
The plan says one size and stop; the order ticket is typed by hand, often quickly. A wrong digit in quantity or a fill well outside your zone changes your risk on that position, and it's easy to miss until the post-trade review. Checking each confirmation against the plan the same day turns those slips into a one-line journal note while they can still be dealt with calmly.
How it fits with other entries
The pre-trade sizing check (aft-0008) produces the planned quantity and risk; this entry checks that what actually filled matches it. Fills-to-round-trips (aft-0049) and real trade costs (aft-0048) work on the full statement later.
Where this comes from
Gmail's help on filters and Zapier's help on its Email Parser, which describe routing and parsing incoming emails into rows. The comparison with a written plan is ours.
Source and references
Original write-up by Agents for Traders. Background reading is linked below.
- Create rules to filter your emails · Gmail Help (checked 20 Oct 2026)
- Set up your Email Parser account in Zapier · Zapier Help Center (checked 20 Oct 2026)
Spotted an error, or want your post removed? Email hello@agentsfortraders.com.
Educational content only. Not investment advice or a personal recommendation. No tickers, signals or trade alerts. Trading involves risk of loss.
Conteúdo exclusivamente educativo. Não constitui aconselhamento nem recomendação de investimento. Sem tickers, sinais ou alertas de negociação. Negociar envolve risco de perda.
Related use cases
Check position size and portfolio heat before you trade
Run a local Python script on your planned entry, stop and positions CSV, and paste only its stdout. The agent checks size, heat, theme concentration and, when present, correlation against your limits, and leaves the decision to you.
Records & tax adminAdd every real cost to your closed trades and see what it does in R
A script matches each closed trade with its commissions, fees and currency conversion from the broker statement, adds slippage against your planned prices, and reports costs in R per trade and as a share of gross results.
Journaling & post-trade reviewRebuild your fills into round-trip trades before any journal stats run
Partial fills, scale-ins and partial exits make a raw broker export misstate win rate and R. A script groups fills into flat-to-flat trades and reconciles them with the broker's realised total, and only those trades feed your stats.
The Daily 3
Three agent workflows for swing traders, free, on US trading days.