Accessing the spread from each trade

 

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

 

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