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

Strategy / Reference

alerta.strategy.netprofit_percent

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

Realized net profit expressed as a percentage of the initial capital. Companion percent variants also available: strategy.openprofit_percent, strategy.grossprofit_percent, strategy.grossloss_percent, strategy.max_drawdown_percent, strategy.max_runup_percent.

alerta.strategy.netprofit_percent → series float

Returns

series float

Example

alerta.strategy.netprofit_percent
strategy("NP%", overlay=false)plot(strategy.netprofit_percent, title="Net Profit %")

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.