All trading research

Building a Quantitative Trading Journal: Metrics That Actually Improve Edge

Create an auditable journal from the first eligible decision through fills, realized R, and excursion measurements.

Backtest Trading Lab Team
Research and education

A quantitative trading journal is a record of what the strategy could observe, what decision it made, and how the market or simulation filled the resulting order. It is more useful than a folder of screenshots when it includes rejected candidates, ambiguous fills, and missing observations. This article describes a journal you can use in both manual bar replay and automated research. Start with a small schema, retain the original decision evidence, and add metrics only when they help answer a specific question. The aim is to improve decision quality without changing rules every time a small batch of trades performs poorly.

Give every opportunity a stable identifier

A useful row contains strategy version, symbol, market type, research timezone, decision time, the reference level and its own eligibility time, and intended direction. Add a session or event identifier so related signals can be grouped. A rejected candidate should have the same identifier pattern and a reason code. If ten candidates are rejected because a scheduled event is close, the rejection count is part of the result. For a filled position, link the order and every partial fill to the original decision. This keeps later changes to position size from silently becoming new trials. Distinguish data gaps from legitimate no-trade observations.

Keep planned and actual quantities separate

Save planned entry, stop, target and quantity when the rule becomes eligible. Later, store actual fill time, price, size, fees and if relevant funding or conversion costs. A screenshot can support an unusual case, but use typed fields for calculations. In a manual test, the harness may model a fill rather than observe one. Label the source as modeled and version the assumptions. Save the original plan unchanged when extending a target or moving a stop. Otherwise an audit may interpret the updated plan as a decision you made earlier. Record any administrative corrections in a new field with a time and reason so results can be regenerated.

Calculate three useful R-based measurements

Initial cash risk should be derived from planned stop distance, value per unit and quantity with the conversion to account currency, using the actual entry if the strategy defines that at the fill. Net realized R equals net P&L divided by this original risk. Maximum favorable excursion, or MFE, is the greatest modeled unrealized gain before exit expressed in R. Maximum adverse excursion, or MAE, is the greatest modeled unrealized loss as a positive magnitude in R. A trade that reaches +1.8R before losing 0.6R tells a different story than a trade that never exceeds +0.1R and loses the same amount. Excursions are path summaries and cannot reveal which level came first within a candle.

Measure execution and adherence on their own

Signed fill slippage for a buy can be fill price minus the eligible reference price, with the sign reversed for a sell. Record the reference basis and compare ordinary sessions with stressed events. Review rules that were observed late, signals skipped outside the plan, or trades not eligible under the recorded setup. A winning violation is still a violation. Calculate adherence as eligible decisions executed according to plan divided by eligible decisions that the study could evaluate. Be explicit about whether rejected and unfilled signals enter the denominator. Then compare strategy performance and actual decision behavior rather than masking one problem with the other.

Make cohort comparisons visible

Group by a small set of fields your research question actually requires, such as clock window and strategy version. For every group show sample size, signed average R, median R, and range of losses. Record drawdown on the chronological portfolio sequence and avoid adding unrelated drawdowns from separate cohorts. A group averaging +0.30R with four trades can suggest a hypothesis, but the estimate is unstable. When trades cluster in sessions, summarize outcomes by session as well as by trade. Set a minimum group size and keep small cohorts visible with an uncertainty flag. Preserving awkward cohorts keeps the journal useful as the sample grows.

Use a worked entry to check the arithmetic

Imagine an example planned risk of 80 in account currency, realized gross P&L of 112, and charged costs of 12. Net P&L is 100 and realized performance is +1.25R. The maximum observed favorable excursion of 144 is +1.80R using the same denominator. Under the same rule, missing spread or stale data can make one otherwise comparable trade unusable for slippage analysis. Preserve its R if the outcome was still measurable and tag the missing execution field, rather than silently dropping the entire row. A periodic reconciliation should select a few wins, losses and rejected signals and reproduce them in replay from the recorded decision time.

Additional validation

A practical journal does not have to begin with a database. Use a plain table and a separate rule document, then enforce consistent numeric units and a unique key for each event. Save timezone and units in column headings. If you extract metrics with a script, keep the arithmetic separate from formatting so values can be recomputed from the rows. Keep missing values distinct from zero, particularly for fees and execution delay. Use versioned snapshots of the raw data when producing a published chart. It should be possible to rerun the same analysis against the saved snapshot after correcting a display bug. Before adding fields, ask whether a field will change a decision in review. A raw degree of confidence without an observable scoring rubric is harder to compare over time than a short list of conditions confirmed at the point of entry.

End the week with one actionable experiment

  • Audit identifiers, timestamps and a sample of fill-to-P&L reconciliations.
  • Review results by opportunity and by filled trade using the recorded rules.
  • Separate execution problems from strategy outcomes in your notes.
  • Choose one proposed change and state how you would test it on new dates.
  • Freeze the updated rule in a new version while keeping the old results.

An effective journal produces a chain of evidence from the decision to the result. It can show that a good setup was executed poorly, an attractive result relied on unusual fills, or adherence improved before returns did. Track changes across several comparable weeks. Ask a second person to reproduce a rejected candidate and a filled trade from the log. If they cannot, improve the journal before adding more metrics to it.

Try the method in replay