Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi people,
I'm using a function to caluclate the swap automatically in the base currency
in this case for S&P 500 MarketInfo(Symbol(),MODE_SWAPLONG) (cause MarketInfo(Symbol(),MODE_SWAPTYPE)=1)
I would like to know how to calculate in the accoount currency. Example, in the case of the S&P500 the function return me 0.46 ;I presume dollars
I would like to know how to calculate it dinamically in deposit currency
Thanks