Slippage doesn't work on pending orders?

 
I wrote an EA to send pending orders. But I found slippage doesn't work when my pending orders come to be a market order. This makes my trade prices have a big gap to my pending orders' prices. It this defined by MT4 or brokers?