Backtest the rule before you trade it.
Have a rule — 'buy when the 10-day average crosses above the 50-day,' 'buy when RSI is oversold'? Tradune’s backtester runs one of six technical rules on a stock’s daily price history and shows how it would have behaved against simply buying and holding the same stock: the trades, the drawdowns, and the stretches where it sat in cash.
A strategy in your head has no track record
Every rule sounds good described out loud. The question that matters is how it behaved across real history — including the years it lagged and the drawdown that would have tested your nerve. Backtesting turns 'this should work' into a chart you can actually examine.
Six rules, one stock at a time
Pick a stock and a rule — SMA crossover, EMA crossover, RSI mean reversion, MACD crossover, Bollinger Bands, or buy-and-hold as the benchmark — set its parameters, and Tradune replays it across that stock’s daily history. You see the equity curve against buy-and-hold, the drawdown chart, the price chart with every buy and sell marked, and the full trade log.
Read the drawdowns, not just the returns
The headline return is the least interesting number. The one that decides whether you’d have actually stuck with a strategy is the worst drawdown — the peak-to-trough stretch you’d have had to sit through. A backtest that hides that is selling you a fantasy.
Know what a backtest can’t tell you
A backtest is a hypothesis test, not a promise. Past behavior is not future behavior, and any rule can be curve-fit to look great in hindsight. Tradune shows you the historical record honestly — the interpretation, and the humility, are yours to bring.
How does the backtester simulate trades?
- 1
Daily bars for one stock
The test runs on daily open, high, low and close prices for the symbol you pick — 500 trading days by default, up to about ten years, or a date range you set. It needs at least 50 days of data.
- 2
One of six rules
SMA or EMA crossover (defaults 10/50 and 9/21 days) buys when the fast average crosses above the slow one and sells on the cross back. RSI mean reversion (14 days) buys below 30 and sells above 70. MACD uses 12/26 with a 9-day signal line. Bollinger Bands (20 days, 2 standard deviations) buy at the lower band and sell at the upper. Buy-and-hold buys on the first day.
- 3
All in, all out, at the close
A buy signal invests all available cash at that day’s close; a sell signal sells the whole position at that day’s close. Fills happen on the same bar that produced the signal, which is slightly optimistic — in practice you would trade after seeing it. There is no partial sizing, shorting or leverage.
- 4
Costs on every fill
Each buy and sell pays 0.3% of the amount traded unless you enter a flat fee per trade. The buy-and-hold comparison line is drawn without any cost, so the comparison does not flatter the rule.
- 5
Statistics that respect the sample
You get final capital, total return, win rate, profit factor, average win and loss, total costs and maximum drawdown against the running peak. The return is annualized only when the run has at least 250 daily returns or spans about a year; Sharpe, Sortino and Calmar (at an assumed 4.2% risk-free rate by default) are withheld below that. A parameter sweep re-runs the rule across up to 50 values of one setting — useful for seeing how fragile a result is, and an easy way to curve-fit if you pick the best one.
What does one round trip cost?
A single buy-then-sell with the default 0.3% cost, on $10,000 of starting capital. Read what backtesting can (and can’t) tell you before trusting any result.
| Step | Strategy | Buy-and-hold line |
|---|---|---|
| Buy at $50.00 | $30.00 cost, 199.4 shares | 200 shares, no cost |
| Sell at $60.00 | $11,964.00 gross, $35.89 cost | — |
| Ending value | $11,928.11 | $12,000.00 (if the last close is $60) |
| Return | +19.28% after costs | +20.00% |
The trade log records this trade as +20% (sell price over buy price) and its dollar profit as $1,958.11 after the sell cost, so read both columns. A rule that trades often pays the cost every time; a result that only beats buy-and-hold before costs does not beat it.
What you get
- Six technical rules on one stock’s daily history
- Historical equity curve and drawdown analysis
- See when a strategy underperformed, not just when it won
- Trading costs on every fill (0.3% default, or a flat fee you set)
- Parameter sweep of up to 50 steps
Frequently asked
What is portfolio backtesting?
Backtesting replays a set of trading rules against historical market data to show how the strategy would have behaved — its returns, its drawdowns, and the periods it did nothing. It is a way to examine an idea before risking money on it.
Does a good backtest mean the strategy will work?
No. A backtest describes the past, and any rule can be curve-fit to look good in hindsight. It is evidence to weigh, not a guarantee — Tradune shows the historical record; the judgment is yours.
How are the backtests run?
On one stock’s daily closing prices. When the rule signals a buy, all the cash is invested at that day’s close, less a trading cost; when it signals a sell, the whole position is sold the same way. The run ends by selling any open position at the last close, so it counts as a trade.
Can I backtest a whole portfolio?
No. The backtester tests one stock at a time against buying and holding that stock. For your portfolio as a whole, the return comparison against SPY and the risk pages describe what actually happened.
Does the backtest include dividends?
The simulation does not add dividend payments as cash; it trades on the daily closing prices the market-data provider returns. Whether income shows up at all depends on whether those closes are dividend-adjusted, so treat results for high-yield stocks with extra care.
Is backtesting free?
Yes — Everything is free for everyone right now — no card, no trial clock, nothing to buy. Paid plans aren’t live yet; when they arrive the Free plan stays free, and we’ll email everyone with a Tradune account or on the product-updates list before anything becomes paid.
Is a backtest financial advice?
No. It is an analytical tool that shows how rules behaved historically. It does not recommend a strategy or tell you to trade one.
Related
Try it on your own portfolio
Free for everyone right now · no card · nothing to buy. Tradune shows you information to do your own research, never advice.
Start freeEducational analytics — not investment advice.