Skip to main content

Close Strategy

This command will close an ATM Strategy and requires a strategy ID value. The strategy ID value must match a strategy ID given to a strategy in the PLACE command. This command will close the specified strategy.

Example Payload

key=your-secret-key;
command=closestrategy;
strategy_id=atm-strategy-id;
Not available on Tradovate

closestrategy closes a NinjaTrader ATM strategy, and Tradovate has no ATM strategy concept. With destination=tradovate; the alert is rejected with a clear error. To exit on Tradovate, use closeposition or flatten.