×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

Convert currency

824 bytes added, 13:02, 7 November 2016
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..."
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>Convert_Currency(DateTime, SrcCurrency, DstCurrency, SrcMoney);</syntaxhighlight>

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==
<syntaxhighlight>Convert_Currency(39448.25000000, GBP, USD, 12.34);</syntaxhighlight>
will return 24.48, which means that: on 1/1/2008: 12.34 GBP was equal to 24.48 USD.
[[Category:Currency Codes]]