How To Test with Slippage

<< Click to Display Table of Contents >>

Navigation:  How Tos >

How To Test with Slippage

Metatrader 4 data does not natively support the concept of slippage in its testing environment. By default, the MT4 Strategy Tester will assume perfect execution at the stipulated trading price. Of course, in live trading this is not always the case and the price you specify on your order can be subject to a different execution price that is not in your favor - that is, slippage.

 

The Advanced Tester allows you to simulate slippage by specifying a minimum and maximum amount of slippage that can occur. The slippage amounts can even be negative, meaning that you can get slippage in your favor. The determination of how much slippage that is applied is random. The randomness is deterministic and based on the execution price of the trade. That is, if the same execution price appears, then the random number will be the same, ensuring that you get the same result in between identical testing runs.

 

Below are the steps required to test with simulated slippage. Expand each section for more details.

 

tog_expandedStep 1: Enable Slippage Simulation in the Advanced Tester
tog_expandedStep 2: Specify the Slippage parameters
tog_collapsedStep 3: Begin your Test!