For example the code below when attached to a GBPJPY chart will convert GBP1000 to JPY.
The latest value given i.e. up to date current datetime conversion is 176,357. The real value should be in the region of 178,000.
I've noticed this with all my contract size calculations that utilise convert_currency - they are all slightly incorrect each time.
Where does it get the exchange rate used to do the conversion from, it should be the latest GBPJPY rate but it doesn't seem to be?
Code: Select all
inputs:
BaseCurrency ( GBP ) ;
variables:
AccountCurrency ( 0 ) ;
AccountCurrency = convert_currency( DateTime, BaseCurrency, symbolCurrencyCode, 1000 ) ;
Print("Currency,",NumToStr(AccountCurrency,2));