How to backtest a trading strategy without coding
By Oalgo · Last reviewed
You can backtest a trading strategy without coding. Tell Oalgo AI your idea in your own words, check the rules it builds, and run them on past prices, then on new prices. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.
1. Tell Oalgo AI your idea
#Tell Oalgo AI in your own words, the way you would say it. For example: “Enter when the 14-period RSI crosses above 30 and the close is above the 50-period SMA. Exit when RSI crosses below 70.”
2. Check the rules
#Oalgo AI turns your words into rules you can see and edit in the builder. Read them before you test: the test follows the rules exactly, not what you meant.
3. Backtest them
#Pick a market, a timeframe and a date range, then run the backtest. Fees and slippage are taken off every trade. In the backtest report, look at the number of trades, the drawdown and the fees, not only the end result.
4. Forward test them
#If the backtest looks reasonable, start a forward test. It runs the same rules on new prices as they arrive, with simulated funds only.
5. Change one thing at a time
#When you change a rule, change one thing, test again and compare. Small, separate changes show you what actually made the difference.
What can a backtest without code not tell you?
#A backtest shows how rules behaved on past prices. It does not say how they will behave on new ones, and rules tuned closely to one stretch can look stronger than they are. That is why step 4 follows step 3.
Read next
- What is backtesting?Backtesting runs your rules on past prices to see how they would have behaved. Learn what it shows, what it cannot show, and how to read the report.
- What is forward testing?Forward testing runs your rules on new prices as they arrive, with simulated funds only. Learn how it differs from a backtest and when to use it.