BaseCurrency (Reserved Word)
The EasyLanguage attribute BaseCurrency allows you to change the currency setting for symbols that trade in a different currency than that of your brokerage account. This is the same Base Currency value found of the General tab on the Strategy Properties dialog. If the attribute is not present in any of the strategy code, users are still able to control the setting through the Strategy Properties dialog.
The syntax is as follows:
[BaseCurrency = Value] // where Value can be Symbol or Account
Note The use of square brackets is required for this reserved word.
Example
[BaseCurrency = Symbol] // The base currency will be determined from the symbol.
[BaseCurrency = Account] // The base currency will be determined from your brokerage account current setting.
Attributes are evaluated at compile time only so their values cannot be changed at run-time.