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

Strategy / Reference

alerta.strategy.risk.allow_entry_in

TradingView-compatible spelling: strategy.risk.allow_entry_in, runs without warnings

Restricts strategy entries to a specific direction.

alerta.strategy.risk.allow_entry_in(direction) → void

Parameters

NameTypeRequiredDefaultDescription
directionstringYes—"long", "short", or "all".

Returns

void

Example

alerta.strategy.risk.allow_entry_in
strategy("Risk: Long Only", overlay=true)strategy.risk.allow_entry_in("long")

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.