Strategy / Reference
alerta.strategy.risk.max_cons_loss_days
TradingView-compatible spelling: strategy.risk.max_cons_loss_days, runs without warnings
Stops new entries after the configured number of consecutive losing trades.
alerta.strategy.risk.max_cons_loss_days(count) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
count | int | Yes | — | Max consecutive losing sequence. |
Returns
voidExample
alerta.strategy.risk.max_cons_loss_days
strategy("Risk Consecutive Loss", overlay=true)strategy.risk.max_cons_loss_days(2)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.