I noticed that Base Currency in Forex Market is wrong (using Interactive Brokers).
For example, using SymbolCurrencyCode in EUR.USD FX, this function return "USD" as base currency and not "EUR".
This is not correct also because when you send a Forex order on IB, like "Buy 100000 EUR.USD", you will buy 100000 EUR and not 100000 USD.
There's away to fix this issue ?
"Excenge and ECNS" in QM seems useless too because i can set just 1 Currency for entire forex market.
Regards
No Erocla
Currency Conversion: Base Currency Issue
Re: Currency Conversion: Base Currency Issue
I set the base currency on Lmax forex instruments using strategy properties on the properties tab there is place to change it there, and then the auto trading is correct. Sometimes I select base currency as none and it works fine.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Currency Conversion: Base Currency Issue
Hello no erocla,
SymbolCurrencyCode/Base Currency/Preferred currency - all these values are considered to be the domestic currency or accounting currency. You should not mix it up with the Base Currency of a Forex pair.
SymbolCurrencyCode/Base Currency/Preferred currency - all these values are considered to be the domestic currency or accounting currency. You should not mix it up with the Base Currency of a Forex pair.
Re: Currency Conversion: Base Currency Issue
Hi Henry and thank you for response.
Based on this:
currencyCodeToStr(currencyCode) – string value for the currency with currencyCode code. For example, currencycodetostr(symbolcurrencycode) will return “EUR” value, if the strategy is calculated using the symbol with EUR as a basic currency.
symbolCurrencyCode – returns currency code of the current symbol.
If i use this on a chart:
On EUR.USD this function return "USD", in EUR.CHF return "CHF", and more...
So this function return currency positioned on right, and not on left.
Regards
No Erocla
Based on this:
currencyCodeToStr(currencyCode) – string value for the currency with currencyCode code. For example, currencycodetostr(symbolcurrencycode) will return “EUR” value, if the strategy is calculated using the symbol with EUR as a basic currency.
symbolCurrencyCode – returns currency code of the current symbol.
If i use this on a chart:
Code: Select all
print(CurrencyCodeToStr(symbolcurrencycode));
So this function return currency positioned on right, and not on left.
Regards
No Erocla
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Currency Conversion: Base Currency Issue
Dear Henry, thank you for response.
But usually in Forex Market Base currency is on left, there's a way to change this setup ?
Also, when you find an order to broker, you send it on currency positioned on left, for example:
BUY 100.000 EUR.USD
will buy 100.000 Eur.
Reards
No Erocla
But usually in Forex Market Base currency is on left, there's a way to change this setup ?
Also, when you find an order to broker, you send it on currency positioned on left, for example:
BUY 100.000 EUR.USD
will buy 100.000 Eur.
Reards
No Erocla
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Currency Conversion: Base Currency Issue
Base Currency of a Forex pair has nothing to do with the SymbolCurrencyCode/Base Currency/Preferred currency values. These values are different things. SymbolCurrencyCode/Base Currency/Preferred currency values represent the accounting currency.