analyze_risk_management
analyze_risk_managementAnalyze position sizing, drawdown limits, and risk-of-ruin for a required experiment protocolId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| inputs | No | Optional input overrides as a JSON-stringified object, e.g. '{"SMA Length":14}'. Keys are Pine input names; values are number, string, or boolean. | |
| source | Yes | ||
| symbol | Yes | ||
| endDate | Yes | ||
| startDate | Yes | ||
| timeframe | Yes | ||
| iterations | No | ||
| protocolId | Yes | Experiment protocol id returned by define_experiment_protocol for this exact risk-management check. | |
| accountSize | No | ||
| caseStudyId | No | Optional: bind this call to one of your case studies. Defaults to the bound run's case study. | |
| researchRunId | No | Optional: bind this call to one of your existing research runs. Defaults to this session's most recent unfinished run. | |
| maxDrawdownPct | No | ||
| riskPerTradePct | No | ||
| ruinDrawdownPct | No | ||
| maxRiskOfRuinPct | No | ||
| mcpIdempotencyKey | No | Unique key for this logical action. Reuse it only when retrying the same arguments. Required for hosted trust-creating actions when no idempotency header is supplied. |