Skip to content
EV Kelly Logo
EV Kelly Calculator
Back to Blog Hub

Building a Positive EV Trading System

How to calculate your true reward-to-risk ratio using historical backtesting data, slippage metrics, and execution friction to guarantee a mathematical edge.

EV
EV Kelly Engine Published • June 22, 2026 • 9 min read

The retail trading industry is obsessed with entries. Traders spend thousands of hours staring at charts, analyzing candlestick patterns, and combining arbitrary indicators to find the "perfect" setup. This is a fundamental waste of time. In quantitative finance, the entry is merely the mechanism to execute an edge. The edge itself is defined by one metric and one metric only: Expected Value (EV).

If you are trading a system with a negative Expected Value, no amount of discipline, chart time, or psychological fortitude will save you. You are playing a rigged game against the house. Your capital will slowly bleed out until you hit a Risk of Ruin event. Building a profitable algorithmic or discretionary system requires stripping away the emotion and ruthlessly calculating the baseline mathematics of your execution model.

The Foundation: Gross Expected Value

Expected Value is the mathematical representation of what a specific trade setup will yield over an infinite number of executions. It balances your historical probability of winning against the asymmetry of your payoff. A system does not need a high win rate to be immensely profitable; it simply needs a positive Expected Value.

The baseline calculation for Gross Expected Value is straightforward:

EV = (Win % × Avg Win) - (Loss % × Avg Loss)

Consider a trend-following system. It only wins 35% of the time, meaning it loses 65% of all trades taken. Most retail traders would abandon this system immediately, assuming it is broken. However, because the system cuts losses instantly and lets winners run aggressively, the Average Win is $400, while the Average Loss is only $100.

Winning Side: 0.35 × $400 = +$140
Losing Side: 0.65 × $100 = -$65
Gross EV: $140 - $65 = +$75 per trade

Despite losing almost twice as often as it wins, every time this algorithm executes a trade, it theoretically prints $75. This is the definition of a positive EV system.

The Illusion of Backtesting: Execution Friction

The calculation above is where amateur system developers stop. They look at the Gross EV from a TradingView backtest, assume they are going to be millionaires, and turn on the live execution. Within a month, the system is losing money.

Why does a positive EV system fail in live markets? Because backtests are frictionless environments. They assume that you get filled at the exact price you requested, with zero delay, and zero cost. The reality of live quantitative execution is defined by Friction. If you do not calculate friction into your model, your EV is a lie.

  • 1. Slippage

    When a breakout occurs, momentum spikes. If your algorithm fires a market order to buy, you are competing with high-frequency algorithms and institutional flow. By the time your order reaches the exchange, the price has moved. You get filled worse than expected. This difference between your theoretical entry price and your actual execution price is slippage, and it permanently degrades your Average Win size.

  • 2. Spread

    The difference between the Bid and the Ask price is a mandatory tax on every single trade you take. If you are trading illiquid altcoins, small-cap stocks, or exotic forex pairs, the spread can represent a massive percentage of your overall risk profile. You are instantly in a negative position the millisecond your trade executes.

  • 3. Broker Commissions and Funding Rates

    If you are utilizing leverage via perpetual futures or CFD contracts, you are paying funding rates and execution fees. High-frequency scalping systems often boast massive win rates and positive Gross EVs, but when broker commissions are subtracted from the hundreds of daily trades, the Net EV instantly turns negative. You are effectively working for your broker.

Calculating True Net Expected Value

To build a robust quantitative model, you must subtract all execution friction from your historical data before calculating your edge.

Net EV = Gross EV - (Average Slippage + Average Spread + Commissions)

If your system yields a Gross EV of $15 per trade, but your average slippage, spread, and commission costs total $18 per trade, your system is mathematically broken. This is why low-timeframe scalping is incredibly difficult to sustain algorithmically; the profit margins are so thin that standard execution friction entirely consumes the statistical edge. High-timeframe swing trading systems are generally far more robust because the Average Win is large enough to absorb the friction without destroying the Net EV.

Bridging the Gap to the Kelly Criterion

Once you have gathered statistically significant out-of-sample data (a minimum of 100 live or forward-tested executions) and calculated a positive Net EV, the system development phase is over. You have an edge. The final, crucial step is determining how to exploit that edge without ruining your account through variance.

This is where the Kelly formula dictates execution. By feeding your proven, friction-adjusted Win Rate and Reward-to-Risk ratio into the Kelly Criterion, the math will output the exact percentage of your bankroll you should risk on the next setup. If the EV of a specific setup drops, Kelly will automatically reduce your position size, defending your capital.

Input Your Edge

Do not assume your edge; mathematically verify it. Take your friction-adjusted win rate and payoff odds, and input them directly into the engine to calculate your optimal fractional position size.

Open the Calculator Engine