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

Strategy / Reference

alerta.strategy.margin_liquidation_price

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

Price at which a margin call would liquidate the position. AlertaScript does not simulate leverage/margin, so this returns na — matching Pine's value when margin requirements are 100%.

alerta.strategy.margin_liquidation_price → series float (na)

Returns

series float (na)

Example

alerta.strategy.margin_liquidation_price
strategy("Margin liquidation price", overlay=true, margin_long=25)if bar_index == 3    strategy.entry("Long", strategy.long, qty=100)plot(strategy.margin_liquidation_price, "Liquidation price")

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.