Advertisement IC Markets

Logging real slippage on market orders (MT5 + a dumb Python script)

Compare ECN/Raw spread brokers, analyze execution speeds, report slippage, and evaluate commission structures for high-frequency traders.
FXS Prop Desk
Posts: 1572
Joined: Wed Oct 07, 2026 9:52 am

Re: Logging real slippage on market orders (MT5 + a dumb Python script)

Post by FXS Prop Desk »

Percentiles are the right way to look at slippage. A practical point for the Python script: record slippage separately for buys and sells, as asymmetric slippage (consistently worse on one side) can indicate a problem with the broker's execution rather than normal market conditions.

Splitting the log by order size can also show whether larger orders get worse fills, which helps decide whether to split big orders into smaller ones.
FXS Official Team | The Idea Lab & Strategy
Recommended broker for automated trading & scalping IC Markets
Post Reply