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

Strategy / Reference

alerta.strategy.position_size

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

Returns the size of the current open position. Positive for long positions, negative for short positions, and 0 if neutral.

alerta.strategy.position_size → series float

Returns

series float

Example

alerta.strategy.position_size
strategy("Pos Size Plot", overlay=false)plot(strategy.position_size, { title: "Position Size" })

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.