Convert currency

From MultiCharts
Jump to: navigation, search

Returns the SrcMoney sum, set in the SrcCurrency currency, in the DstCurrency currency using the cross-rate at the DateTime date and time.


Convert_Currency(DateTime, SrcCurrency, DstCurrency, SrcMoney);


DateTime - date and time set in the DateTime format
SrcCurrency - initial currency used for conversion
DstCurrency - currency to which the sum will be converted to
SrcMoney - funds in initial currency (SrcCurrency) to be converted to DstCurrency


The base 14 currencies can be designated by constants.


Convert_Currency(39448.25000000, GBP, USD, 12.34);

will return 24.48, which means that: on 1/1/2008: 12.34 GBP was equal to 24.48 USD.