Skip to main content
Glama

whatif

Run counterfactual backtests by overriding strategy parameters to compare hypothetical PnL scenarios, such as changing an EMA period or stop loss.

Instructions

Counterfactual replay: same as replay_window plus a strategy-name filter and required param_overrides. Use for 'what if EMA period was 50 instead of 21' / 'show me the PnL if I had used a wider stop'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
strategyYes
to_ts_nsNo
from_ts_nsNo
param_overridesYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FLOX-Foundation/flox'

If you have feedback or need assistance with the MCP directory API, please join our Discord server