AI backtesting: build rules with AI, then test them
By Oalgo · Last reviewed
AI backtesting means an AI turns your idea into rules, and a backtest runs those exact rules on past prices. In Oalgo, Oalgo AI builds the rules as blocks you can read and change, and you run the backtest.
Who does what in AI backtesting?
#| Step | Who does it | What happens |
|---|---|---|
| 1. Write the idea | You | In your own words, such as “enter when the 14-period RSI crosses above 30”. |
| 2. Build the rules | Oalgo AI | The rules appear on the canvas as blocks. |
| 3. Check the rules | You | Read each block. Change any block that is not what you meant. |
| 4. Run the backtest | The backtest | It steps through past prices one candle at a time and applies the rules as written. |
| 5. Read the report | You | Look at the number of trades, the drawdown and the fees before the end result. |
Why read the rules before you run the test?
#A backtest follows your rules, not your meaning. Words leave gaps, and the AI has to fill each gap with a choice. The same sentence can become different rules.
| Your words | One rule it could become | Another rule it could become |
|---|---|---|
| “Enter when the trend is up” | Close above the 50-period SMA | 20-period EMA above the 50-period EMA |
| “Leave if it goes wrong” | Stop Loss 2% from entry | Exit when RSI crosses below 50 |
| “Only when it is moving strongly” | ADX above 25 | Close above the highest high of the last 20 candles |
Each column is a fair reading of the words. They give different trades and so different reports, which is why you read the blocks first.
What can AI backtesting not tell you?
#- How the rules will behave on new prices. A backtest shows the past.
- Whether the rules are sound. An AI can write many versions quickly, and each extra try on the same prices makes a chance fit more likely. That is overfitting.
- Whether the idea is a good one. Oalgo AI gives no advice and makes no promise about how any rules will behave.
A forward test runs the same rules on new prices with simulated funds. The backtest report guide shows what to read first.
Read next
- AI trading strategy builder: from your idea to rulesAn AI trading strategy builder turns your own words into rules you can test. See what an idea needs, what the AI must decide, and what stays with you.
- How to backtest a trading strategy without codingBacktest a trading strategy without coding: tell Oalgo AI your idea, check the rules it builds, then test them on past and new prices. A step-by-step guide.