Strategy / Reference
alerta.strategy.grossprofit
TradingView-compatible spelling: strategy.grossprofit, runs without warnings
Returns the total profit from all winning closed trades.
alerta.strategy.grossprofit → floatReturns
floatExample
alerta.strategy.grossprofit
strategy("P&L Breakdown", overlay=true)plot(strategy.grossprofit, { title: "Gross Profit", color: "#10B981", pane: "oscillator" })plot(strategy.grossloss, { title: "Gross Loss", color: "#EF4444", pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.