# Backtesting

Backtesting functions with exact signatures, examples, and catalog metadata.

Canonical HTML: <https://determica.com/docs/category/backtesting>

Replay trading signals over historical prices with exact integer balances, fees, and fills.

- [backtest_from_signals](/docs/functions/backtest_from_signals.md) — Backtests a long-only spot trading strategy in SQL from entry and exit signals, with exact token amounts. An entry buys with all cash at the next row's price; an exit sells the whole position at the next row's price. Gas, price impact and failed trades are not modeled.
