Close All alerts
At Tickerly, we’ve engineered a way for you to close your current positions for a given ticker, no matter what they might be. This feature enables your strategy to close exchange positions for the strategy ticker, without knowing the exact quantity currently held at the exchange.
Using a close all alert message will override any action or quantity instructions, you also include in the alert. However, the best practice is to only include the ticker, pointer and closeall message elements
Exchange support for close all messages
Notice that the Close all alert message is currently not supported for Alpaca and Apex Pro exchanges as well as MetaTrader
Additional alert structure details
- closeall
This determines that the alert is indeed a close all alert. It can only have one value which is “true”. By sending this, any quantity or action instructions are ignored and the relevant quantity and action is derived from the exchange position data
Close all alert message
{
"ticker": "{{ticker}}",
"closeall" : "true",
"pointer" : "replace with pointer for your exchange here"
}