Sidechair

strategy.account_currency

Browse the reference

The currency the strategy's money is counted in, such as USD.

Try it in the editor

strategy.account_currency is a simple string. It comes from the currency argument of strategy(), which defaults to the symbol's currency. Profit, equity and commission are reported in it.

Type

simple string

Remarks

  • Use strategy.convert_to_account() to turn a price in the symbol's currency into this currency.
  • Use it for labels and conversions. It is a simple string, so it is the same on every bar.

Example

Pine ScriptAccount and symbol currency side by sideOpen in editor
//@version=6
strategy("Currency check", overlay = true, currency = currency.EUR)
if barstate.islast
    label.new(bar_index, high, "Account: " + strategy.account_currency + ", symbol: " + syminfo.currency, style = label.style_label_down)
plot(close, "Close", color.gray)

See also

Runs on Sidechair