How to backtest a trading strategy without coding
You can backtest without coding in three ways: by hand in a spreadsheet, by replaying charts and taking the trades yourself, or with a rule builder that turns blocks or plain-English rules into an automated test. Whatever you use, the rules have to be exact: in our example, one sentence, “buy when RSI is low”, read three reasonable ways gave between 6 and 39 trades over the same three years. Write down every entry, exit, size and cost before you test, then check the result on data you didn’t tune on.
Three ways to test without code
| Method | Good for | Limits |
|---|---|---|
| Spreadsheet | Daily rules, learning how a backtest works, full control of every number | Slow, easy to make look-ahead mistakes, impractical for intraday rules |
| Chart replay (manual) | Practising execution and discretionary setups bar by bar | You test yourself, not a rule; few trades per hour; hard to repeat exactly |
| Rule builder (blocks or plain words) | Automated tests of exact rules over many years, robustness checks | Only as good as the rule you describe and the data and fills the tool uses |
Manual replay and automated testing answer different questions. Replay asks “can I trade this?”; an automated backtest asks “does this rule have an edge?”. Many traders use both.
What a testable rule needs
- Instrument and timeframe: what you trade and which bars the rule reads.
- Entry: the exact condition, and when you act on it (at the close of the bar, at the next open, the moment a price trades).
- Exit: stop, target, time limit or opposite signal, and which comes first if two apply.
- Size: shares, contracts or a percentage of the account.
- Costs: commission and slippage per trade.
- When not to trade: sessions, news, days of the week, maximum trades per day.
If a friend could read your rule and place different trades from yours, it isn’t ready to test.
One sentence, three backtests
“Buy when RSI is low, sell when it recovers” sounds like a rule. We read it three reasonable ways and tested each on the same three years of daily prices, selling when RSI rises back above 50, with 0.05% costs per side:
| “Buy when RSI is low” read as… | Trades in 3 years | Winners | Result after costs |
|---|---|---|---|
| RSI over 14 days below 30 | 6 | 83% | +12.1% |
| RSI over 14 days below 35 | 11 | 64% | +10.6% |
| RSI over 2 days below 10 | 39 | 59% | −2.6% |
Same sentence, very different strategies. (As in our other examples, the three years are a synthetic random walk with no trend, so none of these results is an edge; the point is how much the reading changes the test.) A good no-code tool should make you choose the period, the level and the exit, not choose them silently for you.
Building with blocks
Block builders turn each part of the rule into a piece you can see: a condition, an action, a stop. They make it hard to leave something out, and easy to change one setting and test again. The trade-off is flexibility: unusual logic may need many blocks or a formula.
Describing rules in plain words to an AI
Several tools now let you describe a strategy in plain English and have an AI build it, including Matana Labs (our product). The useful version asks you back about anything ambiguous, such as which RSI period, entry at the close or the next open, what happens if stop and target are hit together, and then shows you the rule in plain words before you test it. Always read that rule back: if it isn’t what you meant, the backtest answers a different question.
A checklist before you trust any result
- The rule only uses information available at the moment it acts.
- Costs and slippage are included, and the result survives doubling them.
- There are enough trades: dozens at least, ideally hundreds.
- The last part of the data was kept untouched and the rule still works there.
- Small changes to the settings don’t destroy the result.
- The drawdown is one you could live through, and you know how bad it could have been (see Monte Carlo).
- Fills are realistic for your timeframe: see 1-second vs 1-minute backtesting.
Keep reading
Questions
Can I backtest a strategy without knowing how to code?
Yes. You can test by hand in a spreadsheet, replay charts and trade them manually, or use a rule builder where you assemble blocks or describe the rule in plain words. The rule still has to be exact, whatever tool you use.
How do I backtest a strategy in Excel?
Put dates and prices in columns, add a column for each indicator, a column for the signal, and a column for the position that uses only the previous row’s signal. Then compute daily returns of the position, subtract costs on each change, and sum. It works for daily rules; intraday rules need a dedicated tool.
Is manual backtesting as good as automated backtesting?
They answer different questions. Manual replay tests whether you can execute a setup; automated testing tests whether an exact rule had an edge over many trades. Manual tests usually cover far fewer trades.
Can AI build a trading strategy for me?
An AI can turn your description into a precise, testable rule and point out what is ambiguous. It can’t know whether the idea has an edge; only testing on data, and checking the result is robust, can tell you that.