Properties
| Name | Type | Description |
|---|---|---|
| indicator_id | string | Built-in indicator identifier. Supported values: rsi, bollinger, ma_crossover, ema_crossover, adx, atr, cci, obv, stochastic, vwap_dev, curvature, vol_ratio. |
| indicator_params | object | Indicator parameter values keyed by param name. Use the indicator's default values if unsure (e.g. RSI: { period: 14 }). |
| position_rule | object | |
| execution_delay | integer | Bars of lag between signal and execution (0 = the signal bar's own return, which looks ahead; 1 = position is held from the following bar, i.e. filled at the signal bar's close). Use 1 to avoid lookah |
| transaction_costs_bps | number | One-way transaction cost in basis points (1 bps = 0.01%). Default 0. |
| leverage | object | |
| regime_filter | object | Optional secondary filter. Zeroes out positions outside the regime. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/marketheist-io/json-schema/marketheist-io-backtest-config-schema.json",
"title": "BacktestConfig",
"x-generated": "2026-11-18",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/_original/marketheist-io-api-openapi.json#/components/schemas/BacktestConfig",
"type": "object",
"required": [
"indicator_id",
"indicator_params",
"position_rule",
"execution_delay",
"leverage"
],
"properties": {
"indicator_id": {
"type": "string",
"description": "Built-in indicator identifier. Supported values: rsi, bollinger, ma_crossover, ema_crossover, adx, atr, cci, obv, stochastic, vwap_dev, curvature, vol_ratio."
},
"indicator_params": {
"type": "object",
"additionalProperties": {
"oneOf": [
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "string"
}
]
},
"description": "Indicator parameter values keyed by param name. Use the indicator's default values if unsure (e.g. RSI: { period: 14 })."
},
"position_rule": {
"$ref": "#/$defs/PositionRule"
},
"execution_delay": {
"type": "integer",
"minimum": 0,
"maximum": 5,
"description": "Bars of lag between signal and execution (0 = the signal bar's own return, which looks ahead; 1 = position is held from the following bar, i.e. filled at the signal bar's close). Use 1 to avoid lookahead bias.",
"default": 1
},
"transaction_costs_bps": {
"type": "number",
"minimum": 0,
"description": "One-way transaction cost in basis points (1 bps = 0.01%). Default 0.",
"default": 0
},
"leverage": {
"$ref": "#/$defs/LeverageConfig"
},
"regime_filter": {
"$ref": "#/$defs/RegimeFilter",
"description": "Optional secondary filter. Zeroes out positions outside the regime."
}
},
"$defs": {
"LeverageConfig": {
"oneOf": [
{
"type": "object",
"title": "None",
"description": "No leverage applied (1×). Default.",
"required": [
"mode"
],
"properties": {
"mode": {
"type": "string",
"enum": [
"none"
]
}
}
},
{
"type": "object",
"title": "Fixed",
"description": "Fixed leverage multiplier (e.g. 2.0 = 2×).",
"required": [
"mode",
"value"
],
"properties": {
"mode": {
"type": "string",
"enum": [
"fixed"
]
},
"value": {
"type": "number",
"minimum": 0.1,
"maximum": 10
}
}
},
{
"type": "object",
"title": "Target volatility",
"description": "Scale leverage so annualized strategy vol matches target_vol (e.g. 0.15 = 15% target annualized volatility).",
"required": [
"mode",
"target_vol"
],
"properties": {
"mode": {
"type": "string",
"enum": [
"target_vol"
]
},
"target_vol": {
"type": "number",
"minimum": 0.01,
"maximum": 2
}
}
},
{
"type": "object",
"title": "Target drawdown",
"description": "Scale leverage so max drawdown matches target_dd (e.g. -0.40 = target -40% max drawdown).",
"required": [
"mode",
"target_dd"
],
"properties": {
"mode": {
"type": "string",
"enum": [
"target_dd"
]
},
"target_dd": {
"type": "number",
"minimum": -1,
"maximum": -0.01
}
}
}
]
},
"PositionRule": {
"oneOf": [
{
"type": "object",
"title": "Threshold",
"description": "Long when the indicator value is above (or below) a fixed threshold.",
"required": [
"type",
"threshold",
"direction"
],
"properties": {
"type": {
"type": "string",
"enum": [
"threshold"
]
},
"threshold": {
"type": "number",
"description": "Crossover level (e.g. 50 for RSI)."
},
"direction": {
"type": "string",
"enum": [
"above",
"below"
],
"description": "Long when indicator is above or below the threshold."
}
}
},
{
"type": "object",
"title": "Crossover",
"description": "Long when the indicator value is above its own moving average.",
"required": [
"type",
"ma_window",
"direction"
],
"properties": {
"type": {
"type": "string",
"enum": [
"crossover"
]
},
"ma_window": {
"type": "integer",
"minimum": 2,
"description": "MA window in bars."
},
"direction": {
"type": "string",
"enum": [
"above",
"below"
]
}
}
},
{
"type": "object",
"title": "Percentile",
"description": "Long when the indicator is above its rolling percentile rank.",
"required": [
"type",
"lookback",
"percentile",
"direction"
],
"properties": {
"type": {
"type": "string",
"enum": [
"percentile"
]
},
"lookback": {
"type": "integer",
"minimum": 10,
"description": "Rolling window in bars."
},
"percentile": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"direction": {
"type": "string",
"enum": [
"above",
"below"
]
}
}
}
]
},
"RegimeFilter": {
"oneOf": [
{
"type": "object",
"title": "Trend",
"description": "Only hold long positions when close > SMA(close, sma_window). The classic 200-period trend filter.",
"required": [
"type",
"sma_window"
],
"properties": {
"type": {
"type": "string",
"enum": [
"trend"
]
},
"sma_window": {
"type": "integer",
"minimum": 2,
"default": 200
}
}
},
{
"type": "object",
"title": "Volatility",
"description": "Only hold positions when ATR%(period) < max_atr_pct. Avoids entering during high-volatility / crisis regimes.",
"required": [
"type",
"atr_period",
"max_atr_pct"
],
"properties": {
"type": {
"type": "string",
"enum": [
"volatility"
]
},
"atr_period": {
"type": "integer",
"minimum": 2
},
"max_atr_pct": {
"type": "number",
"minimum": 0
}
}
}
]
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/marketheist-io-backtest-config"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.