Skip to main content

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.

PropertyValue
Required scopemcp:trade
RiskMedium. Open position may remain.
Side effectsThe 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

SymptomLikely causeFix
deployment_not_foundAlready stopped or wrong ID.Call ListDeployedStrategies.
Strategy keeps showing is_trading: trueStrategy is in mid-bar finish.Re-poll GetDeployedStrategyState after a few seconds.

Safe workflow placement

GetDeployedStrategyState → user decision → StopStrategy → GetDeployedStrategyState
→ if remaining position: Flatten*