PHASE 2 BETA IS OPEN APPLY NOW
TRION
Feature

How to Model Transaction Costs in a Backtest

A backtest that ignores costs is a sales pitch, not a result. The trades that look profitable on paper often turn into losers once you subtract what it actually costs to get in and out.

T
TRION Research
Reviewed by TRION Research
2 min read
Key Takeaways
  • 01 Costs include commissions, spreads, and slippage ‚Äî not just the headline fee.
  • 02 Flat, percentage-of-notional, and liquidity-based models each fit different markets.
  • 03 Slippage is an estimate; model it conservatively rather than assuming mid-price fills.
  • 04 Stress-test across a range of cost assumptions, not a single optimistic number.
  • 05 An edge that vanishes after realistic costs was never a real edge.

In-depth analysis

Every trade you take has a price beyond the quoted price. Commissions, exchange fees, the bid-ask spread, and slippage all eat into returns. A backtest that skips them overstates your edge, and the damage compounds with every trade. High-frequency strategies can look brilliant and still lose money after costs.

The three common cost models

There is no single correct way to model costs. Each approach trades simplicity for realism.

  • Flat per-trade: a fixed dollar amount per fill. Simple, and reasonable for fixed-commission brokers. It ignores trade size, so it can understate costs on large orders.
  • Percentage of notional: a basis-point charge on the value traded. This scales with position size and fits most crypto and FX venues. It still assumes you always trade at the quoted price.
  • Liquidity-based: costs that grow as your order consumes the order book. This is the most realistic for thin markets, large size, or fast intraday systems, and the hardest to estimate well.

Slippage is the part people forget

Spread and commission are knowable. Slippage, the gap between your expected fill and your actual fill, is not. It worsens in volatile or illiquid conditions, which is exactly when many strategies trade most. A defensible backtest applies a conservative slippage assumption rather than pretending fills happen at the mid-price.

Test your assumptions, do not trust them

Costs are an estimate, not a fact. Run your backtest across a range of cost assumptions and watch how the result holds up. An edge that survives only at zero cost is not an edge. An edge that survives realistic and even pessimistic costs is worth a closer, out-of-sample look.

If your strategy only works when trading is free, it does not work.

What TRION adds

TRION was built around an honest validation sequence rather than a promise. It is a paper-only research and validation workstation: you describe a strategy idea in plain English, read the compiled logic line by line, and backtest it against real stored market data. When a metric cannot be computed honestly, TRION shows "N/A" instead of inventing a number.

TRION does not place real orders, does not connect to a broker, and does not promise profit. The current beta is simulation-only and paper-only. AI assists with drafting and explanation; it does not approve, activate, or execute anything. Humans make every decision.

Test this in a paper-only environment.
100% paper trading · no capital · invite-only · 18+
Apply for Beta →

Frequently asked questions

What transaction costs should I include in a backtest?

At minimum, commissions, the bid-ask spread, and an estimate for slippage. For larger orders or thin markets, add a liquidity-based component that grows with size. TRION applies these as configurable assumptions to every simulated trade — paper-only, with no claim that real fills will match.

How much slippage should I assume?

There is no universal number; it depends on the asset's liquidity, your order size, and volatility at the time of the trade. The honest approach is to use a conservative estimate and then test how sensitive your result is to it. If a small change in slippage erases your edge, the edge is fragile.

Does TRION execute trades after modeling costs?

No. TRION is simulation-only and HOLD-only in beta. It models transaction costs inside a paper simulation so you can judge a strategy's logic honestly. It does not place real orders, connect to a broker, or guarantee any outcome. Humans decide what to do with the results.

Sources & References

  1. [1]
    Investing Online (Risks and Fees) — U.S. Securities and Exchange Commission (Investor.gov)
  2. [2]

TRION is a simulation-only, paper-only research and validation workstation. It is not a broker, exchange, investment adviser, or live trading system, and it does not provide investment, financial, legal, or tax advice. Trading and investing involve substantial risk of loss. Backtests and simulations are based on historical data and assumptions and are not guarantees of future results. Reviewed by TRION Research.

Share this article

in LinkedIn𝕏 Post