Currency Conversion: Base Currency Issue

Questions about MultiCharts and user contributed studies.
no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Currency Conversion: Base Currency Issue

Postby no erocla » 10 Nov 2015

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

no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Re: Currency Conversion: Base Currency Issue

Postby no erocla » 17 Nov 2015

Any news ?

Regards
No Erocla

chilli
Posts: 25
Joined: 10 Jun 2014
Has thanked: 11 times
Been thanked: 4 times

Re: Currency Conversion: Base Currency Issue

Postby chilli » 17 Nov 2015

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.

no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Re: Currency Conversion: Base Currency Issue

Postby no erocla » 17 Nov 2015

Dear chilli,

i'am talking about Base Currency assumed by quotemanager.
If you try "SymbolCurrencyCode" function you will see the same issue.

Regards
No Erocla

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Currency Conversion: Base Currency Issue

Postby Henry MultiСharts » 17 Nov 2015

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.

no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Re: Currency Conversion: Base Currency Issue

Postby no erocla » 17 Nov 2015

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:

Code: Select all

print(CurrencyCodeToStr(symbolcurrencycode));
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

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Currency Conversion: Base Currency Issue

Postby Henry MultiСharts » 18 Nov 2015

Hello no erocla,

Yes, that is the expected result.

no erocla
Posts: 134
Joined: 31 May 2013
Has thanked: 60 times
Been thanked: 7 times

Re: Currency Conversion: Base Currency Issue

Postby no erocla » 18 Nov 2015

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

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Currency Conversion: Base Currency Issue

Postby Henry MultiСharts » 18 Nov 2015

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.


Return to “MultiCharts”