analyze_trade_features
analyze_trade_featuresAttribute trade outcomes to entry/exit features, sessions, and MAE/MFE excursions.
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 | ||
| endDate | Yes | ||
| atrLength | No | ||
| maxTrades | No | ||
| smaLength | No | ||
| startDate | Yes | ||
| timeframe | Yes | ||
| losingOnly | No | ||
| caseStudyId | No | Optional: bind this call to one of your case studies. Defaults to the bound run's case study. | |
| emaFastLength | No | ||
| emaSlowLength | No | ||
| rangeLookback | No | ||
| researchRunId | No | Optional: bind this call to one of your existing research runs. Defaults to this session's most recent unfinished run. | |
| volumeLookback | No | ||
| efficiencyLength | No | ||
| recentReturnBars | No | ||
| atrBaselineLength | 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. |