I'd like to know any MQL4/5 function to get commission fee before open order.
Thanks in advance.
My question: Is there any MQL function (method or way) to calculate commission value before open order?
I'd like to integrate this function into my MQL program.
There is 2 ways :
I have the same problem. I would want to know what is the way in which system will calculate commissions and swaps. But I need to know it while my EA is running and before sending orders to a concrete instrument. Sure that the broker will tell me that question, but I'd want to certify it by my program. The question is that my EA will be searching for interesting instruments and it needs to know which are the specific characteristics of each instrument, before sending orders to them.
If the system is able to calculate commissions after the order is sent, I'm sure that the EA would be able to know the conditions before sending orders.
I think this property should be another MarketInfo() parameter, or perhaps is in MarketInfo(), but I don't find it. Thanks a lot !!