Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.strategy.risk.max_cons_loss_days
On this pageSignatureParametersReturnsExample

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) → void

Parameters

NameTypeRequiredDefaultDescription
countintYes—Max consecutive losing sequence.

Returns

void

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.