Backtesting
Backtest any trading strategy from your agent
Describe the rules and your agent writes the Python strategy and backtests it on historical data. A backtest of SPY's full daily history since 1993 finishes in 1.5 seconds.
How it works
- 1
Describe the strategy
Tell your agent the entries and exits in plain words. It writes the Python strategy that works on LONA infrastructure
- 2
Pick the data and period
Choose up to five symbols from US and China equities, ETFs, crypto and forex, a shared bar frequency from 5 minutes to daily, and a date range.
- 3
Read the report
Trades, equity curve, drawdown and every metric land in one report, in the app or right in your chat.
What you get
Realistic fills
Market orders fill at the next bar's open by default, so a signal never trades on the price that produced it. You set commission, leverage and starting cash.
Our data or yours
Use LONA data from Tiingo, updated daily, or upload your own OHLCV CSV.
Every run is kept
Each backtest gets its own report and each code change a new strategy version, so you can compare runs side by side.
[ FAQ ]
Questions
More LONA features
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.
Walk-forward analysis
Re-optimize a strategy on rolling or anchored in-sample windows, then test it on unseen out-of-sample data. Get stitched equity and walk-forward efficiency.
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.