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 floatReturns
series floatExample
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.