analyze_cost_sensitivity
analyze_cost_sensitivityMeasure the strategy at its actual configured costs, then test a separate imposed commission/slippage grid for the required protocolId. Include settings worse than the declared costs before claiming cost robustness. maxVariants counts all executions, including the configured and zero-cost references.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | ||
| costBps | No | ||
| endDate | Yes | ||
| startDate | Yes | ||
| timeframe | Yes | ||
| protocolId | Yes | Experiment protocol id returned by define_experiment_protocol for this exact cost-sensitivity check. | |
| caseStudyId | No | Optional: bind this call to one of your case studies. Defaults to the bound run's case study. | |
| maxVariants | No | ||
| researchRunId | No | Optional: bind this call to one of your existing research runs. Defaults to this session's most recent unfinished run. | |
| slippageTicks | 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. |