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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
direction | string | Yes | — | "long", "short", or "all". |
Returns
voidExample
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.