futures io



How to account for slippage when backtesting?


Discussion in Commodities

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




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

How to account for slippage when backtesting?

(login for full post details)
  #1 (permalink)
kobo
Sofia,Bulgaria
 
 
Posts: 7 since Jun 2021
Thanks: 2 given, 1 received

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 futures io?
Rival systems and Exegy
Platforms and Indicators
Crude data for Sierra Chart
Sierra Chart
Convert Pine Code to NT8
Platforms and Indicators
TradeStation live and dev environments
Platforms and Indicators
Export Bloodhound Performance Report?
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Spoo-nalysis ES e-mini futures S&P 500
38 thanks
New NinjaTrader
29 thanks
Artificial Intelligence (AI) and Chat GPT
28 thanks
Is anyone actually making money?
18 thanks
how to avoid chop
5 thanks

 
(login for full post details)
  #2 (permalink)
 FuManChou 
Saint Paul, Minnesota, United States
 
Experience: Beginner
Platform: MultiCharts
Broker: Edge Clear
Trading: Micros
 
FuManChou's Avatar
 
Posts: 98 since Jun 2019
Thanks: 1,117 given, 115 received

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
 
(login for full post details)
  #3 (permalink)
kobo
Sofia,Bulgaria
 
 
Posts: 7 since Jun 2021
Thanks: 2 given, 1 received



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 futures.io mobile app

Reply With Quote
 
(login for full post details)
  #4 (permalink)
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
 
Hulk's Avatar
 
Posts: 369 since May 2014
Thanks: 731 given, 899 received

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 futures io Trade Journal Reply With Quote
The following 3 users say Thank You to Hulk for this post:
 
(login for full post details)
  #5 (permalink)
 FuManChou 
Saint Paul, Minnesota, United States
 
Experience: Beginner
Platform: MultiCharts
Broker: Edge Clear
Trading: Micros
 
FuManChou's Avatar
 
Posts: 98 since Jun 2019
Thanks: 1,117 given, 115 received


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 futures.io 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
The following 3 users say Thank You to FuManChou for this post:


futures io Trading Community Traders Hideout Commodities > How to account for slippage when backtesting?


Last Updated on January 13, 2022



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts