Backtest a trading rule against buy-and-hold
How to test your own entry and exit rules on real one-minute history and see whether they beat simply buying and holding the same stock or ETF.
How to run it
- Open the Lab and write the entry rule: the condition that turns the position on, for example close.crosses_above(EMA(close, 50)).
- Write the exit rule, and if you want them, a stop-loss and a take-profit in percent.
- Choose the symbol and the dates, then run the backtest.
- Read the strategy report: your rule and buy-and-hold of the same symbol, on the same bars and window, side by side.
What the report compares
- Return: what the rule made against what holding made.
- Worst drawdown: the deepest fall from a peak, for each. A rule that earns a little less with a much shallower drawdown may still be the one you want.
- Sharpe and Sortino, computed the same way for both, so the comparison is like for like.
- Trades and costs: every round trip pays its modelled cost, so a rule that trades often has to earn it.
Before you trust the result
- Strategies are long-only; the buy-and-hold side is long too.
- Everything runs on one-minute bars, so a stop that a daily-close rule would never trigger can fire intraday, and a rule can exit and re-enter several times in a choppy day.
- One symbol over one window is a small sample. Try the same rule, unchanged, on another symbol or period before trusting it.
Start from the Library, where every indicator is drawn live on real one-minute bars, or read the questions people ask.
Singular Signal is not investment advice. Past or hypothetical performance is not a promise.