Variables
strategy.account_currency
The currency the strategy's figures are reported in, as a string.
Example
//@lipi=2
strategy("strategy.account_currency Example", overlay=false, initial_capital=10000)
if talib.crossover(close, talib.sma(close, 20)) {
strategy.entry("Long", strategy.long)
}
if talib.crossunder(close, talib.sma(close, 20)) {
strategy.close("Long")
}
if barstate.islast {
label.new(bar_index, high, text="account_currency: " + strategy.account_currency)
}
Type
series string