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.
Please for the examples of MQL4 syntax for the following cases:
1/. Margin to open 1/100 Lot
2/. Swap for Long (1/100 Lot)
3/. Swap for Short (1/100 Lot)
4/. TickValue of 1/100 Lot
I mean about shares like GOOGLE, IBM, Home Depot, Bank of America etc...
For currency pairs there is no problem, we have for example:
1/.
MarketInfo("EURUSD",MODE_MARGINREQUIRED)/1002/.
MarketInfo("EURUSD",MODE_SWAPLONG)/1003/.
MarketInfo("EURUSD",MODE_SWAPSHORT)/1004/.
MarketInfo("EURUSD",MODE_TICKVALUE)/100... but what about CFD ? ... above functions does not work for the CFD?
how to use MODE_MARGINCALCMODE and/or MODE_PROFITCALCMODE?