API call to find out Commission rate?

 

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

 
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.

 
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.

Reason: