Strategy / Reference
alerta.strategy.convert_to_account
TradingView-compatible spelling: strategy.convert_to_account, runs without warnings
Converts a value in the symbol's currency to the strategy's account currency. Strategies here keep their money in the symbol's currency, so the value comes back unchanged — exact when both currencies are the same, as on every USDT pair.
alerta.strategy.convert_to_account(value) → series floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
value | float | Yes | — | Amount in the symbol's currency. |
Returns
series floatExample
alerta.strategy.convert_to_account
//@version=6strategy("Account currency")plot(strategy.convert_to_account(close), "Close in account currency")Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.