Convert currency
From MultiCharts
Returns the SrcMoney sum, set in the SrcCurrency currency, in the DstCurrency currency using the cross-rate at the DateTime date and time.
Usage
Convert_Currency(DateTime, SrcCurrency, DstCurrency, SrcMoney);
Where:
- 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
Notes
The base 14 currencies can be designated by constants.
Example
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.