The Art of Properly Backtesting

By | TradingMarkets.com | July 01, 2009 09:20 AM

For those of you who enjoy backtesting, or for those of you who are just learning how to backtest, I'm going to give you a simple test to run over the weekend. What I'd like you to do is to run the following test and send me the test results by Sunday night. This includes the number of trades, the % correct and the average. gain per trade.



Here is the test. You'll test this on the SPY going back to January 1993.


The SPY is above the 200 day ma.

If the 2 period RSI closes under 25 two days in a row, buy 10% of a position on the close of that second day the RSI under 25.

If at any time you're in the position, and it closes lower than your original buy price, buy 20% more.

If at any time you're in the position and it closes lower than your previous buy position (the 20% position) buy 30% more.

If at any time you're in the position and it closes lower than your previous buy position (the 30% position) buy 40%, more getting you to a full position.

The exit is on the close any time the 2-period RSI closes above 70.



When you send me your test results, also send me your trading platform you tested this on and the data source that the platform used.


There are two great reasons to do this test.


You'll get a chance to practice testing TPS scale-ins.


As a whole, my strong guess is that there will be many different test results sent to me based upon the platform used and the data sources used. From there, I will be able to tell you whether the integrity of your code and data is correct and what you can do to improve upon it.



This is a good test and worth spending some free time doing. Send your results to me at l.connors@tradingmarkets.com and on Monday we'll look at the key points in order to make your backtesting as strong as possible.


Special Note - Our High Probability ETF Trading book is now released. If you haven't ordered your copy yet you can do so by clicking here. The pre-sales for the book have exceeded our expectations and the early feedback from the many traders who have already downloaded the book has been excellent.


If you'd like to order your copy today, please click here now.




Larry Connors is CEO and Founder of TradingMarkets.com and Connors Research.


Original publication: July 01, 2009

How to Successfully Trade ETFs

Do you want to learn how to trade more successfully, more consistently ... and with more confidence? If so, then the TPS strategy is for you.

Hundreds, if not now thousands, of ETF traders successfully use the TPS trading strategy to find the best ETF trade set-ups each day to place winning trades.

FREE NEWSLETTERS

What Stocks and ETFs are headed up and down this week?

Our Weekly Newsletter covers this in dept and gives performance information on the previous week.

TradingMarkets Weekly Newsletter

UPCOMING EVENTS
Learn new strategies, how to trade in this market, and the stocks you should be focusing on each day. Join us for our free 20 minute tele-seminars during the week.
Tuesday February 21 01:00 PM
Presented By Phil Suarez
Thursday February 23 12:30 PM
Presented By Kevin Haggerty
* Attendance is strictly limited and seats are filled on a first-come, first-served basis.