System testing - trade cost approximation?

This is a discussion on System testing - trade cost approximation? within the Trading Systems forums, part of the Methods category; All, I'm looking into doing some back-test research. However, my investigation up to this point has raised a question that ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Oct 6, 2005, 8:36am   #1
 
fundjunkie's Avatar
Joined Feb 2004
System testing - trade cost approximation?

All,
I'm looking into doing some back-test research. However, my investigation up to this point has raised a question that I'm sure you can answer...

I have seen that Metastock (as an example) allows a trading system to be tested and equity growth (and draw-down) to be tracked over time. I've also seen some historic data (for the S&P500, not individual stocks). This showed price info. for the index over time and immediately raised questions in my mind. The ability to track the equity profile of a trading system is clearly crucial but how can it be done if bid/offer spreads aren't factored into the calculations? Are these discretionary parameters that the operator, ie. me, inputs into the testing software prior to test?


Thx,
D
fundjunkie is offline   Reply With Quote
Old Oct 6, 2005, 9:13am   #2
 
blackcab's Avatar
Joined Jul 2004
The bid/ask spread of a major index should be constant or near-constant in trading hours. Take that into account when you simulate your buys/sells. Take slippage into account as well -- either worsen your buy/sell prices by a small constant no. of pips or a random no. of pips within a reasonable range, or make a calculation of the speed of price movement at that time and worsen your buy/sell price by an amount proportional to the speed of movement.

Another way to make a simulation more realistic is to simulate fill times -- introduce a fixed or random time delay between order and fill, and set your buy/sell price to what the index is at the fill time, not the order time. Again, you could make the fill time proportional to the speed of price movement at the time of order.

This all assumes you're doing bar-by-bar trading simulation on historical data by hand or with software, rather than something much higher level.
blackcab is offline   Reply With Quote
Old Oct 6, 2005, 9:23am   #3
 
JonnyT's Avatar
Joined Dec 2001
If the data is trades data i.e. no bid/ask factor in a slippage of 2 ticks
If the data is bid/ask factor in a slippage of 1 tick

Then factor in the commissions.

In reality you might do better than this but you will at least know the system has a positive outlook in the real world and not just in a backtest.

JonnyT
__________________
Trading Mentor
JonnyT is offline   Reply With Quote
Old Oct 6, 2005, 11:23am   #4
Joined Oct 2003
........and the more times a system trades the more sensitive the results will be to the cost of trading (ie slippage & commission).
Tuffty is offline   Reply With Quote
Old Oct 6, 2005, 11:26am   #5
 
JonnyT's Avatar
Joined Dec 2001
Not necessarilly.

It depends entirely on what the average trade is.

i.e. You could trade 10 times and make 3 ticks per trade on the other hand you could trade 10 times in the same period and make 6 ticks per trade.

I agree the more frequently you trade then the likelyhood is that the average trade will be lower.

JonnyT
__________________
Trading Mentor
JonnyT is offline   Reply With Quote
Old Oct 6, 2005, 12:40pm   #6
Joined Oct 2003
.......and JonnyT is right. It was a generalisation, not something one should do in this business.
Tuffty is offline   Reply With Quote
Old Oct 6, 2005, 6:51pm   #7
 
fundjunkie's Avatar
Joined Feb 2004
fundjunkie started this thread
Quote:
Originally Posted by blackcab
This all assumes you're doing bar-by-bar trading simulation on historical data by hand or with software, rather than something much higher level.
I hope that backtesting software packages are configurable for this sort of thing and will be shocked if they're not. Handling the money side by hand while backtesting would make back-tests of longer timeframes virtually impossible (unduely onerous anyway) considering the productivity benefits that this software is meant to grant the user.

This point might seem quite basic/obvious but I'm still weighing up software packages and don't want to shell out big money on something that can't do what I expect. The general superficiality of product related information me rather apprehensive in that regard!
fundjunkie is offline   Reply With Quote
Old Oct 7, 2005, 9:46am   #8
 
blackcab's Avatar
Joined Jul 2004
I think the programs have scripting languages that you can use to do that sort of thing, but I've never used them so don't know for sure.
blackcab is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
famous system with low cost ?!! vincent_f Trading Systems 8 May 20, 2007 5:35pm
System Testing Help Required scpope Trading Software 3 Mar 17, 2004 1:44pm
Metastock System Testing Newbie Question Mik Trading Software 9 Nov 5, 2003 4:54pm
Metastock system testing zanshin Trading Software 4 Apr 26, 2001 10:24pm

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)