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

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 float

Parameters

NameTypeRequiredDefaultDescription
valuefloatYes—Amount in the symbol's currency.

Returns

series float

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.