Strategy / Reference
alerta.strategy.contracts
TradingView-compatible spelling: strategy.contracts, runs without warnings
Pine v6 default_qty_type: number of contracts.
alerta.strategy.contracts → stringValue
contracts
Returns
stringExample
alerta.strategy.contracts
strategy("Demo", default_qty_type = strategy.contracts, default_qty_value = 1)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.