Convert currency

From MultiCharts
Revision as of 13:02, 7 November 2016 by Angelina (talk | contribs) (Created page with "Returns the SrcMoney sum, set in the SrcCurrency currency, in the DstCurrency currency using the cross-rate at the DateTime date and time. ==Usage== <syntaxhighlight>Conver...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.