Expectancy is the average amount a strategy makes or loses per trade, based on how often it wins, how much the winners earn and how much the losers cost. The formula is (win rate × average win) − (loss rate × average loss). If the result is above zero after costs, the strategy has a positive edge on the sample you measured. If it is below zero, a high win rate will not save it. When you automate a TradingView strategy, expectancy is the number you want execution to leave intact, and that is where a fast, no-code connection like Tickerly’s matters.
Key Takeaways
- Expectancy = (win rate × average win) − (loss rate × average loss). It is a per-trade average, in dollars or in R (multiples of your initial risk).
- A high win rate says little on its own. A 65% win rate can still produce negative expectancy if the average loser is larger than the average winner.
- Fees, slippage and delayed fills reduce expectancy on every trade, so measure it net of costs and compare it with live results.
- Expectancy needs a large enough sample of trades to mean anything, and it only holds while market conditions resemble the data you measured.
- Position sizing, stops and risk rules live in your TradingView strategy. Automation’s job is to carry out those rules consistently.
Table of Contents
- What expectancy tells you that win rate does not
- The trading expectancy formula
- Two worked examples
- How to calculate expectancy from your own trades
- Where expectancy misleads
- From expectancy to risk per trade
- Protecting expectancy when you automate
- Putting expectancy to work: a short routine
- Our perspective
- Automate your TradingView strategy with Tickerly
- FAQ
- Sources
What expectancy tells you that win rate does not
Most traders first judge a strategy by how often it wins. That is understandable, because wins feel like proof. But win rate is only half of the picture. The other half is the size of the wins relative to the losses.
Expectancy combines both into one figure: what you can expect, on average, from the next trade if the future looks like the sample. A trend-following system that wins 35% of the time can be healthy if its winners are three times its losers. A scalping system that wins 70% of the time can bleed if one loser wipes out five winners.
For a bot trader, this matters more than for a manual trader. A bot will take every signal your Pine Script produces, with no hesitation and no skipped trades, so the strategy’s statistical character is exactly what you will experience. There is no discretion to hide behind.

The trading expectancy formula
The standard formula uses four inputs, all taken from a list of closed trades:
- Win rate: winning trades divided by total trades.
- Loss rate: losing trades divided by total trades (1 minus the win rate, if you ignore break-even trades).
- Average win: total profit from winners divided by the number of winners.
- Average loss: total loss from losers divided by the number of losers, entered as a positive number.
Then:
Expectancy = (win rate × average win) − (loss rate × average loss)
The result is in whatever unit you used for the inputs. In dollars, it is the average profit per trade. In percent, it is the average return per trade.
Expectancy in R-multiples
Many traders express the same idea in R, where 1R is the amount you risk on a trade, usually the distance from entry to stop. A trade that makes twice its risk is +2R, and a full stop-out is −1R. The average of all your trades’ R-multiples is the system’s expectancy, an approach associated with Van Tharp, as explained in the FXStreet learning center.
R is useful because it strips out account size. A strategy at +0.25R per trade has the same character whether you trade $1,000 or $100,000, and it lets you compare strategies on different instruments. If you want to go deeper on the risk-to-reward side of the equation, our guide to the role of risk-reward in trading covers it.
Two worked examples
The arithmetic is simple, but the results often surprise people.
Example 1: a low win rate with a positive edge
A breakout strategy produces these numbers over its closed trades:
- Win rate: 40%
- Average win: $300
- Average loss: $150
Expectancy = (0.40 × $300) − (0.60 × $150) = $120 − $90 = +$30 per trade.
In R terms, with $150 as 1R, the average win is 2R and the average loss is 1R: (0.40 × 2) − (0.60 × 1) = +0.2R.

Example 2: a high win rate with a negative edge
A mean-reversion strategy looks better on the surface:
- Win rate: 65%
- Average win: $100
- Average loss: $200
Expectancy = (0.65 × $100) − (0.35 × $200) = $65 − $70 = −$5 per trade.
This strategy wins almost two trades out of three and still loses money over time. The equity curve may look smooth for weeks, then drop sharply when the larger losses arrive.
Example 3: what costs do to Example 1
Suppose each round trip costs $5 in fees and slippage combined. Subtract that from the result: $30 − $5 = +$25 per trade. The edge survived, but a sixth of it went to costs. For a strategy with a thin edge, say +$6 per trade before costs, the same $5 leaves +$1, and any extra slippage turns it negative.
This is why the order of operations matters: calculate expectancy from net trade results, not gross ones, and watch how it changes as trade frequency rises. The more often a strategy trades, the more each small cost compounds.
How to calculate expectancy from your own trades
You can do this in a spreadsheet in a few minutes.
- Export your closed trades. In TradingView, the Strategy Tester’s List of Trades gives you each trade’s profit or loss. Make sure the figures include commission and slippage settings that match what you expect to pay.
- Count winners and losers. Decide how to treat break-even trades and stay consistent. Most traders count them as losses of zero in the average.
- Compute the averages. Average winner and average loser, separately.
- Apply the formula. Or take the average of every trade’s result directly, which gives the same number.
- Check the sample. The more trades behind the figure, the more you can lean on it. A figure from 15 trades is a hint, not a measurement.
- Repeat on a separate period. If the edge only exists in one stretch of data, it may not be an edge.
That last step is the reason walk-forward testing exists. Our walk forward analysis guide shows how to test whether an expectancy figure holds on data the strategy was not tuned on, and effective backtesting covers how to validate a strategy before you trust its numbers.
Where expectancy misleads
Expectancy is an average, and averages hide shape. Keep these limits in mind.
- Small samples. A few large winners can inflate the figure. Check what happens to expectancy if you remove your best trade.
- Changing markets. A strategy that suited a trending market may behave differently in a range. Expectancy describes the sample, not a promise about the next one.
- Backtest assumptions. The Strategy Tester fills orders under simplified rules. Our article on Pine Script strategy tester limitations explains where its results can drift from live fills.
- Drawdowns. Two strategies with the same expectancy can have very different losing streaks. Expectancy does not tell you whether you can tolerate the ride.
- Ratio metrics. Profit factor, gross profit divided by gross loss, is a related measure with its own blind spots. See profit factor in trading for what it captures and what it leaves out.
A positive expectancy is a necessary condition for a strategy worth running, not a guarantee of future results.
From expectancy to risk per trade
Once a strategy shows a positive net expectancy, the next question is how much to risk on each trade. Expectancy tells you the edge exists. Position size decides how fast you experience the variance around it.
Because expectancy is stated per unit of risk, it pairs naturally with fixed-fraction sizing: risk the same percentage of equity per trade, and the R-multiples translate directly into account growth or decline. Allocating risk across several strategies or assets is a related discipline, and this overview of the risk parity strategy steps shows one way to think about balancing risk contributions.
In a TradingView workflow, these rules belong in the strategy itself: the stop distance, the size calculation and the exit logic are written in Pine Script, and they determine your R. For sizing formulas, see trade size calculation methods and trading bot position sizing methods. For the broader picture of controlling exposure in automated systems, read how to manage risk in trading bots.
Protecting expectancy when you automate
The expectancy you measured assumed trades were entered and exited at the prices the strategy intended. Live, three things can erode it:
- Delay between alert and order. The longer an order takes to reach the exchange, the further the price can move from the signal price. On fast timeframes, that gap is a direct cost on every trade.
- Missed or inconsistent execution. If you place trades by hand, you will skip some and hesitate on others, which changes the win rate and the average win and loss from what you tested.
- Setup drift across strategies. Running several strategies on several symbols by hand makes errors more likely.
A tool that turns TradingView alerts into exchange orders addresses these directly. Tickerly connects your TradingView strategy alerts to supported exchanges through exchange APIs, with execution within a fraction of a second of the alert, and it requires no coding and no VPS. It runs several strategies side by side (20 active strategies on Level 2, unlimited from Level 3, with 100 to 2,500 alerts a day depending on the plan), so each strategy keeps its own expectancy profile and runs in parallel. To see the routing step by step, read TradingView strategy automation: from alert to live order and how to route TradingView alerts to an exchange.
The benefit is consistency: the bot takes the trades your strategy generates, the way the strategy generates them. It does not change the strategy’s edge, and it does not set your stops or size. Those stay in your Pine Script.
Comparing live results with your expectancy figure
After going live, recompute expectancy on your actual fills after 30 or more trades, then again as the sample grows. Compare the live average win, average loss and win rate with the tested ones. If live results are consistently worse, look first at fees, slippage and timing. Testing a connection on an exchange’s demo account before using real funds lets you check that alerts become the orders you expect.
Putting expectancy to work: a short routine
- Calculate net expectancy in dollars and in R from at least a few dozen trades.
- Test the figure on a period the strategy was not built on.
- Subtract realistic costs and see whether the edge survives.
- Decide risk per trade inside your Pine Script strategy.
- Run it live with automated alerts and recompute the numbers on actual fills.
- Retire or rework a strategy when live expectancy stays negative over a meaningful sample.
If you run more than one strategy, expectancy also helps you decide which deserves more attention. Our guide on diversifying trading strategies covers combining them, and why quantitative strategies work explains the logic behind rule-based edges.
Our perspective
Traders often ask us which strategy is best. The better question is which strategy has a measured, net-of-cost expectancy you trust, and whether your execution leaves it intact.
We built Tickerly around that second half. Your edge lives in your TradingView strategy: the entries, the stops, the sizing. Our job is to take your alerts and turn them into orders on your exchange within a fraction of a second, without code, without a VPS, and across as many strategies and symbols as your plan allows.
A strategy with a thin edge cannot afford hesitation or a missed alert. Automation takes the human timing out of the loop, so the numbers you measured are the numbers you trade.
Jay
Automate your TradingView strategy with Tickerly
If your expectancy figure is positive and you want your alerts executed consistently, Tickerly offers a 30-day free trial, then subscription plans: Level 2 at $19 per month, Level 3 at $29 per month and Level 4 at $39 per month, plus a Level 4 Ultra plan for heavier use. Plans differ by supported asset classes, number of strategies and alert limits. See the Tickerly plans to choose the one that fits your strategies.
For a walkthrough of setup, read how to automate trading on TradingView using Tickerly.
FAQ
What is a good expectancy for a trading strategy?
Any net positive figure after costs indicates an edge, but how good it is depends on trade frequency and risk. Many traders think in R: for example, +0.2R per trade means an average gain of 20% of the amount risked. A small positive number can be meaningful on a high-frequency strategy and thin on a low-frequency one.
How many trades do I need to trust an expectancy calculation?
There is no single magic number, but more is better, and a few dozen trades is a minimum for a first read. Check that the result holds across different periods and does not depend on one or two outsized winners. Recalculate as live trades accumulate.
Can a strategy with a win rate below 50% have positive expectancy?
Yes. If the average winner is large enough relative to the average loser, a low win rate can still produce a positive result. In Example 1 above, a 40% win rate with winners twice the size of losers gives +0.2R per trade.
Does automation change a strategy’s expectancy?
Automation does not create an edge. It executes your strategy’s alerts consistently, so live results are closer to what you tested, subject to fees, slippage and market conditions. Compare your live expectancy with your tested figure regularly.
Sources
Recommended
- Trade Exit Strategy Guide for Active Traders
- Why Trading Strategies Fail: What Traders Must Know
- Effective Backtesting: How to Validate Your Trading Strategies
- Profit Factor in Trading: Formula, Examples and What It Misses
This article was produced with Al assistance and reviewed for accuracy. It is provided for general information only and is not professional or financial advice.

