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

Strategy / Reference

alerta.strategy.default_entry_qty

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

Returns the default order quantity that strategy settings imply at a given fill price.

alerta.strategy.default_entry_qty(fill_price) → series float

Parameters

NameTypeRequiredDefaultDescription
fill_priceseries int|floatYes—Price used to estimate the default quantity.

Returns

series float

Example

alerta.strategy.default_entry_qty
strategy("Qty Preview", overlay=false, default_qty_type=strategy.percent_of_equity, default_qty_value=10)plot(strategy.default_entry_qty(close), { title: "Default qty", 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.