determica
Home
Try the interactive demo
Docs
Search docs…
Ctrl K
Esc
Category
All categories
Clients and state contexts
Chain reads
Contracts and ABI
Simulation
EVM utilities
Fixed-point and AMM math
Development and bytecode
Backtesting
Kind
All kinds
Scalar
Table
Aggregate
Execution
All modes
Offline
Transport RPC
Live client
Pinned client
Execution client
READ constructor
External service
Suggested
Run all
Params
Docs
›
Functions
›
Backtesting
.md
View this page as Markdown
Backtesting
Replay trading signals over historical prices with exact integer balances, fees, and fills.
backtest_from_signals
(TABLE)
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.
#Backtest
#Strategy
#Signals
#Exact Math
Table