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 → intReturns
intExample
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.