Summarise weekly journal stats by setup, with a minimum sample before any conclusion
Every weekend you paste pre-computed journal stats into an agent, which reports win rate, average R and expectancy by setup tag, regime and weekday, and labels any group below your minimum sample as not enough data.
How it works
- Open the journal sheet from your post-trade review, with computed columns win_rate, avg_win_R, avg_loss_R, expectancy_R and n already in place.
- Copy the grouped stats (or export that range) and paste them into the agent with {{min_sample}}.
- The agent drafts a short summary: best and worst setup by expectancy among groups that meet the minimum, always showing n.
- Groups with n below the minimum are listed as "not enough data", with no ranking or conclusion.
- You read the draft. The agent does not write anywhere; when you are happy with it, you paste it into your weekly-review tab yourself.
Copy-paste prompt
Summarise these pre-computed journal stats (pasted below) from {{journal_sheet_name}}.
0. If any individual trade rows or raw data appear in the paste (instead of only the pre-aggregated table with exactly the five computed columns), refuse to summarize and reply only "Please provide the pre-computed grouped stats table only."
1. Use the computed columns only (win_rate, avg_win_R, avg_loss_R, expectancy_R, n). Do not recalculate.
2. Report by setup_tag, regime and weekday. Always show n.
3. Any group with n < {{min_sample}} is "not enough data": no ranking, no conclusion.
4. Name my best and worst setup by expectancy among groups that meet the sample size, and suggest one question to look into (not a rule change).Guardrails
- Minimum sample size before conclusions.
- Always show the sample size next to each statistic.
- Questions, not rule changes; rule changes go through the weekly review.
- The model never calculates win rate, average R, or expectancy; those come only from the sheet. If the pasted table is missing n or expectancy_R, stop.
- If any individual trade rows or raw data appear in the paste (instead of only the pre-aggregated table with exactly the five computed columns), refuse to summarize and reply only "Please provide the pre-computed grouped stats table only."
- The agent only drafts the summary. It does not write to Google Sheets and it never edits journal rows. After you accept the draft, you paste it into the weekly-review tab yourself.
What can go wrong
Ten trades make any setup look brilliant or terrible. Showing n next to every number, and hard-blocking conclusions below a threshold, stops overreaction. Two further risks: when data is pasted in, the model may ignore the "use computed columns only" instruction and try to recompute statistics, so keep the calculations in the sheet and tell it not to recalculate. And if a spreadsheet formula is wrong, the agent will present a confidently worded but wrong summary, so check your formulas before trusting the output.
Why it helps
Stats by setup tell you where your edge actually is, if any, and where you are just busy. This differs from its neighbours: aft-0006 reviews individual trades, and aft-0022 keeps a living page per setup with definitions and examples, while this entry is only the weekly cross-cut by setup, regime and weekday, with a hard minimum-sample gate. aft-0026 applies the same gate to state-of-mind data.
Further reading
Zerodha's public write-up on analysing trade logs (see references) covers similar ground with worked examples.
Source and references
Original write-up by Agents for Traders. Background reading is linked below.
- Analysing trade logs and backtesting · In The Money by Zerodha (Substack) (checked 17 Oct 2026)
- Trading Plan: Definition, Examples, and Tips · Investopedia (checked 17 Oct 2026)
- Risk/Reward Ratio: What It Is, How Stock Investors Use It · Investopedia (checked 17 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
Review every closed trade in R-multiples, automatically
An agent runs a script on your closed-trade CSV to compute R-multiple and holding days (and MAE/MFE if you supply price history), then checks each trade's execution against the plan you wrote before entry.
Journaling & post-trade reviewPropose one evidence-backed playbook change from the weekly review
On Sunday the agent compiles your mistakes and best trades from the journal and proposes at most one change to your written playbook, with the evidence. You approve or reject it.
Journaling & post-trade reviewTurn your trade journal into a setup library the agent keeps current
From your journal and post-trade reviews, an agent maintains one linked page per setup. Each page holds your written definition, example trades, common mistakes and stats computed in code; a separate dated log records every definition change.
Discipline, checklists & psychologyFind what comes before your rule breaks with a pre-session state log
Before you trade, rate sleep, stress, mood and focus in a 20-second log. Each week an agent compares those ratings with your rule breaks and checklist skips, and shows a pattern only once the sample is big enough.
The Daily 3
Three agent workflows for swing traders, free, on US trading days.