Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.strategy.cancel_all
On this pageSignatureReturnsExample

Strategy / Reference

alerta.strategy.cancel_all

TradingView-compatible spelling: strategy.cancel_all, runs without warnings

Cancels all pending entries and active exit orders.

alerta.strategy.cancel_all() → void

Returns

void

Example

alerta.strategy.cancel_all
strategy("Cancel All Example", overlay=true)if bar_index == 1  strategy.entry("L1", "long", limit = close * 0.99)if bar_index == 2  strategy.cancel_all()

Names and aliases

Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.

AlertaScript

No results found.

Search by name, alias, or keyword.