If an account has been set up to have a 1/2 or 1 pip commission rate, is it possible to get that information in an EA?
Yes, but only for closed orders you can use OrderCommission().
Is the OrderCommission() in currency or pips? I assume it is in currency like OrderSwap() ??
Like OrderSwap().
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If an account has been set up to have a 1/2 or 1 pip commission rate, is it possible to get that information in an EA?
If not, does the OrderCommission() function return a value on an order that is open, i.e. on an order that is not yet closed we can determine the commission that was charged on that order?
Is the OrderCommission() in currency or pips? I assume it is in currency like OrderSwap() ??
I don't have an account with commissions available for testing.
Thank you very much,
-Christian