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

Strategy / Reference

alerta.strategy.losstrades

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

Returns the number of closed trades that ended with a loss.

alerta.strategy.losstrades → int

Returns

int

Example

alerta.strategy.losstrades
strategy("Trade Stats", overlay=true)plot(strategy.wintrades, { title: "Wins", color: "#10B981", pane: "oscillator" })plot(strategy.losstrades, { title: "Losses", color: "#EF4444", 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.