StopStrategy
Stops a strategy that was deployed through MCP. The deployment registry is updated; the NT8-side strategy stops accepting new bars and closes its working orders per its own logic.
Write Action
Stopping a strategy can leave an open position. Decide whether to flatten before or after stopping.
| Property | Value |
|---|---|
| Required scope | mcp:trade |
| Risk | Medium. Open position may remain. |
| Side effects | The strategy stops trading. |
When an agent should use it
- At session end if the user wants to stop deployed strategies.
- When a kill condition fires (daily loss room, max drawdown, news window).
- On explicit user instruction.
Parameters
{ "deployment_id": "d-7001" }
Response shape
{
"deployment_id": "d-7001",
"stopped": true,
"remaining_position": { "instrument": "MES 06-26", "side": "Long", "quantity": 1 }
}
Example user prompt
Stop deployment d-7001. After stopping, tell me if there is a remaining position
and propose a flatten plan. Wait for me to confirm before any flatten action.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
deployment_not_found | Already stopped or wrong ID. | Call ListDeployedStrategies. |
Strategy keeps showing is_trading: true | Strategy is in mid-bar finish. | Re-poll GetDeployedStrategyState after a few seconds. |
Safe workflow placement
GetDeployedStrategyState → user decision → StopStrategy → GetDeployedStrategyState
→ if remaining position: Flatten*