← CoreNova Blog
The Backtest Engine — replaying trading strategies on real history
Published 2026-05-24 · Updated 2026-11-19 · CoreNova Team
What backtesting actually proves (and doesn't)
Backtesting is running a trading strategy's rules on historical prices to see how it would have done. Done honestly, it tells you whether the rules had an edge on that history. Done sloppily, it produces beautiful results with no connection to future profits.
The CoreNova backtest engine (Premium, and included in the free trial; 2 tokens a run) replays four classic strategies — and the rules of our Trend Follow and Swing Hold lanes — on real price history, and reports them beside simply holding the asset. This post explains exactly what it does, what it doesn't, and how to read the numbers.
The command
/backtest SYMBOL [crypto|stock] [TIMEFRAME] — all four, side by side
/backtest SYMBOL [crypto|stock] STRATEGY [TIMEFRAME] — one strategy, your settings
Examples:
/backtest BTC — all four strategies on BTC 4h, beside buy & hold, plus the Trend Follow and Swing Hold rules on the same coin
/backtest AAPL stock ema_cross 1d — the EMA 9/21 cross on AAPL daily
/backtest ETH crypto rsi_macd 4h short — RSI + MACD on ETH 4h, shorts only
The Web App's 📊 Backtest does the same with buttons, draws the equity curve, and keeps your past runs under "My backtests" — where, every Monday, each run of the last 90 days is re-scored on the bars that came after it ("since you ran it").
Running the same backtest again on the same closed bars costs nothing: you get a copy of the earlier result.
The four strategies
1. EMA Cross (ema_cross)
Entry: the 9 EMA crosses the 21 EMA (up for a long, down for a short). Exit: the opposite cross, or the ATR stop / target. Classic trend-following: good when markets trend cleanly, whipsawed in chop.
2. RSI + MACD (rsi_macd)
Entry: RSI comes back up through 30 or MACD crosses up (mirrored for shorts). Exit: the ATR stop / target, or RSI reaching the other extreme.
3. Bollinger Reversion (bollinger_revert)
Entry: a close below the lower band (above the upper band for a short). Exit: back at the middle band, or the ATR stop. Mean reversion — it suffers when a move outside the band turns into a trend.
4. Composite vote (legacy) (corenova_signal)
The bot's older vote of 10 indicators on a single timeframe: in when the vote turns long or short and the higher timeframe agrees, out on the ATR bracket. It is not today's analysis — which shows how many timeframes agree, the trend and a trade plan rather than a single verdict — and it is not the CoreNova Signals app. We keep it so old runs stay comparable, and we show its results like any other: over most recent windows it trailed buy & hold.
Every strategy uses the same ATR bracket (a stop and a target sized from the signal bar's volatility — 2× and 4× ATR by default, tight and wide versions selectable).
The defaults. Crypto runs on 4-hour bars, long and short — but takes a trade only in the direction of BTC's daily trend, and only when BTC's daily ADX is 25 or more. Stocks run on 1-hour bars, long only. Why: on their own these strategies trade both ways with no edge before fees, so they keep fighting the market. In our test on 172 coins over 17 months of 4-hour bars, the BTC trend check turned EMA Cross from −39% to +19% for the typical coin and RSI+MACD from −51% to +11%. It still doesn't beat simply holding in a rising market. Add nogate in chat (or untick "Only with BTC's daily trend" in the Web App) to run without it.
Our lanes, as strategies
trend_follow replays our Trend Follow lane as it posts — only the flips it would post (in regime: a clean move while BTC's own 4-hour trend is with it), at the sizes it would post them, net of its 0.10% cost (4-hour bars, crypto, longs); the flips it would only log are shown apart — and swing_hold the rules of our Swing Hold lane (daily bars; the lane posts US stocks and coin shorts on the weakest third of coins, and measures the rest; the replay takes every trade its rules give on your one symbol, only when BTC's or SPY's daily trend allows). Each runs at its own timeframe, in the directions the lane trades, and the result shows the lane's own recorded track record beside it — one symbol is a small sample; the lane itself trades a whole list.
How a trade is filled
- A signal is read on a bar's close and filled at the next bar's open — the first price anyone could actually trade.
- The stop is checked before the target; a bar that touches both counts as a loss.
- A bar that opens through the stop fills at that open, not at the stop.
- The bar that is still forming is never traded.
- Fees are included: 0.12% round trip on crypto, 0.06% on stocks. Slippage is not modelled — so the engine also shows the result at twice the fees.
- One position at a time, with 100% of equity in each trade, compounded — the simplest honest way to show what the rules did, not a sizing recommendation.
The numbers you get
- Total return and buy & hold over the same bars — the difference is shown in percentage points. A short-only run isn't compared with holding.
- Max drawdown, marked to market inside each trade, not just at exits.
- Win rate, average win / loss, profit factor, expectancy — a 35% win rate can be profitable with large winners; a 70% win rate can lose money.
- Sharpe per trade (mean trade ÷ its standard deviation) — not annualised.
- Both halves: the trades of the first and second half of the window, each compounded. If the halves disagree in sign, the result probably depends on one stretch of the market.
- Trade count — under 10 trades, the engine warns you; anything under ~30 tells you little.
How much history
Crypto: ~30 days of 15m bars, ~60 days of 30m, ~6 months of 1h, ~16 months of 4h, and years of daily. Stocks: 2 years of 1h and 10 years of daily.
What backtesting can't tell you
- The future. Use backtests to filter out rules that didn't work, not to pick rules guaranteed to work.
- Whether you could follow it. Could you sit through a 30% drawdown without closing early? The backtest doesn't feel that.
- Execution. Partial fills, spreads in fast markets, funding on perpetuals and exchange outages aren't simulated.
- Regime changes. A rule that thrived in one kind of market can fail in the next — which is why the both-halves check exists.
How to use it well
- Start with "all four" beside buy & hold. If none beat holding, that is the answer for that window.
- Check both halves before you believe a good number.
- Read the drawdown first — if it's more than you could sit through, the return doesn't matter.
- Compare timeframes — a rule can work on 4h and fail on 15m.
- Treat it as a filter, not a recommendation. The numbers will be what they are — not what we wish they were.
Open CoreNova in Telegram →
Educational content only — not financial advice. Trading involves risk.