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

Strategy / Reference

alerta.strategy.grossloss

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

Returns the total loss (as a positive number) from all losing closed trades.

alerta.strategy.grossloss → float

Returns

float

Example

alerta.strategy.grossloss
strategy("Loss Report", overlay=true)const ratio = strategy.grossprofit / math.max(strategy.grossloss, 1)plot(ratio, { title: "Profit Factor", pane: "oscillator" })

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.