LONA™

Codex

Backtest trading strategies in Codex

Connect LONA to Codex in two commands. Codex writes the strategy, LONA runs the backtests, optimizations and walk-forward tests.

Set it up

Set it up

  1. 1

    Add the server

    The first command registers LONA as a remote MCP server in Codex.

  2. 2

    Log in

    The second command opens your browser to sign in with your LONA account.

  3. 3

    Start a session

    Open Codex and ask for a strategy. It calls LONA's tools to dry-run, save and backtest it.

Terminal
codex mcp add lona --url https://mcp.lona.agency/mcp
codex mcp login lona

Then ask

A first prompt to paste once LONA is connected.

prompt
Use LONA to backtest a mean-reversion strategy on SPY daily data since 2010: buy when RSI(2) falls below 10, sell when it rises above 70. Then optimize the two RSI thresholds for the Sharpe ratio and show the best region.

Questions