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.
Hello,
Does anybody know how to access the commission of a market without having to execute an order, in the same way one can access the swap?
There are simple commands for acquiring the swaps:
double SwapLong = MarketInfo(Symbol(),MODE_SWAPLONG);
double SwapShort = MarketInfo(Symbol(),MODE_SWAPSHORT);
However, the only command I can see available for acquiring the commission is to open an order, select it, and then use the command:
double Commission = OrderCommission();
There must be a better way to do this?
Thanks.