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

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 → float

Returns

float

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.