quantbrasil backtests info
Mostra a motivação, defaults e parâmetros de uma estratégia
Sintaxe
quantbrasil backtests info <strategy-id>Esta é uma operação de leitura. Modos de saída: json, human.
Argumentos e opções
| Nome | Tipo | Obrigatório | Descrição | Padrão |
|---|---|---|---|---|
strategy-id | Argumento | Sim | ID da estratégia | — |
--json | Opção | Não | Exibe saída JSON | — |
Exemplos
quantbrasil backtests info ifr2Saída (--json)
Estrutura da resposta retornada com --json:
export interface BacktestStrategyResponse {
ok: boolean;
strategy: BacktestStrategyOut;
}
export interface BacktestStrategyOut {
id: string;
label: string;
family: string;
description: string;
selection_guidance: string;
timeframe_guidance: string;
side: "long" | "short";
allowed_timeframes: string[];
requires_timeframe: boolean;
fixed_risk: boolean;
day_trade_only: boolean;
blocked_in_crypto: boolean;
default_parameters: Record<string, BacktestParameterValue>;
parameters: BacktestParameterOut[];
}
export type BacktestParameterValue = string | number | boolean;
export interface BacktestParameterOut {
name: string;
label: string;
type: "boolean" | "enum" | "integer" | "number" | "string";
required: boolean;
default: BacktestParameterValue | null;
description: string;
format: "time" | null;
value_hint: string | null;
agent_guidance: string | null;
options: BacktestParameterOptionOut[] | null;
}
export interface BacktestParameterOptionOut {
value: string;
label: string;
}Exemplo de resposta
{
"ok": true,
"strategy": {
"id": "ifr2",
"label": "IFR2",
"family": "IFR",
"description": "Compra ativos em sobrevenda pelo IFR de 2 períodos e encerra pela regra de saída temporal.",
"selection_guidance": "Use para estratégias de reversão à média baseadas em sobrevenda por IFR curto. Esta é a versão de compra/long.",
"timeframe_guidance": "Aceita timeframes intradiários e D1/W1. Use D1 para um backtest diário genérico.",
"side": "long",
"allowed_timeframes": ["M15", "H1", "D1", "W1"],
"requires_timeframe": true,
"fixed_risk": false,
"day_trade_only": false,
"blocked_in_crypto": false,
"default_parameters": {
"rsi": 5,
"window": 2
},
"parameters": [
{
"name": "rsi",
"label": "IFR",
"type": "number",
"required": false,
"default": 5,
"description": "Nível de IFR usado como gatilho de entrada.",
"format": null,
"value_hint": "número entre 0 e 100",
"agent_guidance": "Principal limiar de IFR do setup IFR2.",
"options": null
}
]
}
}