NexusFi: Find Your Edge


Home Menu

 





How to account for slippage when backtesting?


Discussion in Commodities

Updated
    1. trending_up 3,370 views
    2. thumb_up 6 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

How to account for slippage when backtesting?

  #1 (permalink)
kobo
Sofia,Bulgaria
 
Posts: 7 since Jun 2021
Thanks Given: 2
Thanks Received: 1

When backtesting, do you assume that the fills are at bid/ask and then add the slippage?

Let's take ZC where 1 tick per contract has value of $12.50.

For example in our backtest the entry price of ZC is 600 (market order). But in reality we would get 600.25 for long(599.75 for short) because we will be filled at ask(bid). And if we add slippage of 1 tick it should be 600.50 for long(599.50 for short). Then we exit, say again at 600(market order). In reality, we will close our long position at 599.75 (600.25 our short position) and if we add again the slippage of 1 tick, it will be 599.50(600.50). So we end up with $50 (4 ticks in our case) loss per contract for every trade(2 ticks for opening and closing the position at the bid/ask and 2 ticks of slippage).

Or would you assume that you will be filled at 600 (ignoring bid/ask) and then just add 2 ticks of slippage per round trip which would actually result in $25 loss?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Bigger Wins or Fewer Losses?
24 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
  #2 (permalink)
 
FuManChou's Avatar
 FuManChou 
Saint Paul, Minnesota, United States
 
Experience: Beginner
Platform: MultiCharts
Broker: Edge Clear LLC
Trading: MNQ
Posts: 100 since Jun 2019
Thanks Given: 1,127
Thanks Received: 120

I recommend a minimum of 1 tick slippage per side (in/out) during back testing. I personally use 2 ticks of slippage per side during back testing on every instrument/symbol I test.

Reply With Quote
  #3 (permalink)
kobo
Sofia,Bulgaria
 
Posts: 7 since Jun 2021
Thanks Given: 2
Thanks Received: 1



FuManChou View Post
I recommend a minimum of 1 tick slippage per side (in/out) during back testing. I personally use 2 ticks of slippage per side during back testing on every instrument/symbol I test.

“2 ticks of slippage per side” you mean 2 ticks when entering and 2 ticks when exiting (4 ticks)?


Sent using the NexusFi mobile app

Reply With Quote
  #4 (permalink)
 
Hulk's Avatar
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
Posts: 369 since May 2014
Thanks Given: 731
Thanks Received: 901

For ZC, you can probably assume you will get filled at the bid or ask unless you are trading more than 25 lots. In my backtests, I double the bid-ask spread and use that for slippage. So for ZC, I would use 2 ticks per side when backtesting. That brings it closer to actual fills especially if you are executing manually.

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
FuManChou's Avatar
 FuManChou 
Saint Paul, Minnesota, United States
 
Experience: Beginner
Platform: MultiCharts
Broker: Edge Clear LLC
Trading: MNQ
Posts: 100 since Jun 2019
Thanks Given: 1,127
Thanks Received: 120


kobo View Post
“2 ticks of slippage per side” you mean 2 ticks when entering and 2 ticks when exiting (4 ticks)?


Sent using the NexusFi mobile app

Yes. That is correct. I use 2 ticks getting in and 2 ticks getting out per contract for slippage. I used to use 1 tick per side per contract and discovered that real slippage in live market was around 2 ticks per side.

If you are using a limit order to enter in the market then you can remove entry tick slippage but you risk not getting filled in live markets.

Reply With Quote
Thanked by:




Last Updated on January 13, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts