API call to find out Commission rate?

To add comments, please log in or register
Heinrich Munz
24
Heinrich Munz  

Hi


Does anybody know, how to find out the brokers Commission rate !!!before!!! a trade have been made on Metatrader 4 (not 5) ?

Of course, I know that there is the OrderCommission() API function. But this only works, if there are already existing previous closed orders. However, if there are no previous orders (i.e. a new live Account or at the Beginning of a Backtest), I'd like to know a way to find out the Commission per lot.


Best 

Hanky27

Xiangdong Guo
3914
Xiangdong Guo  
Heinrich Munz:

Does anybody know, how to find out the brokers Commission rate !!!before!!! a trade have been made on Metatrader 4 (not 5) ?

Of course, I know that there is the OrderCommission() API function. But this only works, if there are already existing previous closed orders. However, if there are no previous orders (i.e. a new live Account or at the Beginning of a Backtest), I'd like to know a way to find out the Commission per lot.

Broker can charge commission by deal, by day or by month.

Therefore, you have to consider it case by case.

Heinrich Munz
24
Heinrich Munz  
Xiangdong Guo:

Broker can charge commission by deal, by day or by month.

Therefore, you have to consider it case by case.

Yeah, that's clear.

My question is how to consider it case by case before the trade is opened.

William Roeder
20208
William Roeder  
  1. You consider it by asking your broker.
  2. Do not count on OrderCommission/OrderSwap. Some brokers don't use those fields.
              please help: Mt4 commission - Trading 4Accounts - MQL4 4and 4MetaTrader 44 - MQL4 4programming 4forum
              "balance" orders in account history - Day Trading Techniques - MQL4 and MetaTrader 4 - MQL4 programming forum
To add comments, please log in or register