Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.strategy.closedtrades.max_runup_percent
On this pageSignatureParametersReturnsExample

Strategy / Reference

alerta.strategy.closedtrades.max_runup_percent

TradingView-compatible spelling: strategy.closedtrades.max_runup_percent, runs without warnings

Returns max runup percent for a closed trade.

alerta.strategy.closedtrades.max_runup_percent(trade_index) → float

Parameters

NameTypeRequiredDefaultDescription
trade_indexintYes—Closed trade index.

Returns

float

Example

alerta.strategy.closedtrades.max_runup_percent
strategy("Closed Runup %", overlay=true)v = strategy.closedtrades > 0 ? strategy.closedtrades.max_runup_percent(0) : 0plot(v, { 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.