Download MetaTrader 5

Accessing the spread from each trade

To add comments, please log in or register
Forex Trader
114299
Forex Trader  

Hello

I have looked far and wide and cannot find where a record of the actual spread for a trade is logged inside MT4. This doesn't matter with fixed spread brokers but it's difficult to actually place a trade and know what the spread is to a decimal point. Looking even 1 min later the spread will have changed. Surely it is stored somewhere inside the MT reporting. Can anyone assist? Thanks

Forex Trader
114299
Forex Trader  

Spread is not an "attribute" associated with an order.

In your EA, you would need to calculate the difference between the Ask and Bid price and log it.


CB

To add comments, please log in or register