Claude
Backtest trading strategies in Claude
Add LONA from Claude's directory and turn a trading idea into a backtested strategy in one conversation, with LONA's reports shown in the chat.
Set it up
- 1
Open the connector
Open LONA in Claude's directory from the button below and add it.
- 2
Sign in
Connect it with your LONA account, or create one for free.
- 3
Describe the idea
Ask Claude to build and test a strategy. It writes the code, dry-runs it and runs the backtest on LONA.
Then ask
A first prompt to paste once LONA is connected.
Using LONA, build a strategy for the QQQ ETF that buys after three consecutive down days and sells after five days. Backtest it on daily data since 2012 and compare it with buy and hold.What your agent can do with LONA
Create strategies
Describe the rules in plain words. The agent writes the Python strategy and dry-runs it before saving.
Backtest
Run it on US and China equities, ETFs, crypto and forex, from 5-minute bars to daily.
Optimize parameters
Sweep one or two parameters and compare every combination.
Walk-forward analysis
Re-optimize on rolling windows and test on data the parameters never saw.
Day and time tests
Find the weekdays or UTC hours your strategy should skip.
[ FAQ ]