Strategy / Reference
alerta.strategy.opentrades
TradingView-compatible spelling: strategy.opentrades, runs without warnings
Returns the number of currently open trades in the strategy.
alerta.strategy.opentrades → intReturns
intExample
alerta.strategy.opentrades
strategy("Open Trades Count", overlay=true)plot(strategy.opentrades, { pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.