Walk-forward analysis
Walk-forward analysis, run by your agent
Optimize on one period, trade the winner on the next, and repeat. See how your parameters hold up on data they never saw. 28 windows and 2,828 backtests finish in 19.6 seconds.
How it works
- 1
Set the grid and objective
Pick one or two parameter grids and the metric that chooses the best combination in each window.
- 2
Lay out the windows
Choose the in-sample period, the out-of-sample step and rolling or anchored mode, then preview every window's dates.
- 3
Read the out-of-sample result
The out-of-sample periods are stitched into one equity curve, with drawdown, walk-forward efficiency and profitable windows.
What you get
No look-ahead
Each out-of-sample test uses parameters chosen only from the data before it, and they stay fixed for that period.
Preview before you spend
See the windows, backtests and credits before running. Previewing is free, and only in-sample iterations are charged.
Inspect every window
Each window lists its dates, the chosen parameters and its in-sample and out-of-sample results.
[ FAQ ]
Questions
More LONA features
Backtesting
Backtest Python trading strategies on 80,000+ symbols from Claude, ChatGPT, Codex or the LONA app. Trades, equity curve and every metric in one report.
Parameter optimization
Sweep one or two strategy parameters over a grid and compare every combination in a table and a 2D or 3D chart. Run 1,000 backtests in under 30 seconds.
Day and time optimization
Find the weekdays or UTC hours that hurt your strategy. LONA backtests it with new entries blocked on one day or time slot at a time and compares the results.
MT5 export
Turn a LONA strategy into a compiled MetaTrader 5 Expert Advisor. LONA translates Python to MQL5, compiles it with MetaEditor and returns .mq5 and .ex5 files.