This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Backtest your way to financial security

Re: Backtest your way to financial security.

This presumes that you want or need to engage the market intraday. I don't. That would for me defeat the whole point of what I am trying to achieve lifestyle wise by trading.

Backtesting intraday strategies is certainly possible, but is very time consuming (I have access to tick data if I want to utilize it for backtesting, but so far have chosen not to use it as part of a system design).

EOD trader levels do indeed appear to be used by intraday traders to their advantage - 'tis one of the reasons I don't put my stops in market.

Bobby said:
Guess what i'm trying to say is ~ Times have changed, new conditions now apply.
"This time it's different."

Bobby said:
Backtesting past performance = Just that .
Yep. In the absence of a crystal ball, it's the next best thing because it can clearly alert you in advance to the following;
1. You're trading a system which has never been profitable so is unlikely to be profitable now.
2. Your system is no longer trading within previously tested limits - why?

Bobby said:
what stage are you at ?
Position trading - 3, just following the plan without fear or favour
Short term trading - 2 and steadily working towards 3
 
stevo said:
Why can every aspect of human nature be back-tested?
I doubt that it can - but it is possible to test procrastination and poor execution so it probably possible to test for most issues that a rational person would confront.

Stevo

How can back-testing, test procrastination and poor execution?
 
Re: Backtest your way to financial security.


Bob,

4. Intuitively trading?
 

Thanks Stevo.

Yes optimisation could open up a can of worms.

Snake
 
carmo said:
Not sure if it constitutes back testing or not, but I looked at my losers and most of them had one thing in common, lack of volume. So I consider I learnt from having a good look back.

And you didn't need software to realise it! It's marvelous how the human brain can learn through experience. It is rather uncomfortable taking the plunge though without some safety blanket so to speak - human nature.
 
nizar said:
Stevo

How can back-testing, test procrastination and poor execution?


It should go a long way to eliminating it.Once you have the trading "Blueprint" .
If you follow exactly entry/exit and stops you'll return similar numbers to those found in backtesting.
Certainly been the case in the 3 I use.
I know Stevo's had the same result with his and Jose' Silva.

The most consistent returns I have found are those returned by traders who have a well tested simple Trading System. WELL TESTED
 
"How can back-testing, test procrastination and poor execution?"

Procrastination could be tested by taking only a % of signals that are triggered. Or random entry factor could be added to the buy signal, such as "buy only if I toss heads or roll a 6 on the dice" type approach.

Poor execution could be along the lines of buy and sell at the worst possible price, or buy at a random price above the midpoint for the week.

It really comes back to thinking creatively. Try to make the system fail. If you are trading a daily timeframe try delaying the exits for a couple of days and see what happens. I am sure that the time delay could be random - "sell sometime in the week after the exit is given. I can't trade a daily timeframe due to work commitments but it took me some time to work this out. It's much better to learn through back-testing than to learn through experience and real dollars. Experience can be the worst teacher!

I usually test with a random entry / exit in the week following the signal since I trade on a weekly timeframe. If a system returns a positive result even when the trades are executed at the worst possible price then it is more robust than a system that doesn't. Try all the possible combinations.

I wouldn't trade a system that relies on me executing the trades at the open or the close price or a very specific trigger price but fails at a random price or worst possible price for the day / week. But I would like to know that the system tends to work better if I get out at the open price.

Stevo
 
stevo said:
"How can back-testing, test procrastination and poor execution?"

Good points Steve.


Montecarlo testing will turn up a great deal. For those un familiar.

Lets say you test 20000 portfolios.

It's like giving 20000 people your system and your starting capital and telling them to follow it for the test period,then coming back and reporting the results.

Some one off results will return a profit but when Montecarlo tested 80% of portfolio's may return a profit and 20% fail. I and I'm sure steve look for 100% returning profit.I then look at the deviation from the Average to the worst and best performing portfolio. I personally look for around 20% max from best to worst.

Steve's other ways of testing worst cases are very good.

As Steve points out do everything you can to FAIL your system after all some will place $100s of thousands into trading methodologies in the form of Super or hard earned wealth created over many years.
Better to find failure now than when fully invested.
 
I personally would not be comfortable just back testing on recent (say past 24 months) historical data on one exchange.
I wonder whether it would be better to back test on a variety of data sets you can create with certain characteristics. (Without any pre-conceived bias of what the outcome should be)

1) A number of Bull datasets – a basket of 200 stocks with certain minimum price / volume characteristics with the following criteria:
# 60-80% went up by more than x % over a given time
#10- 30% stayed within x% of the start price over a given time
# 5-20 % went up more than x % over a given time

2) A number of Sideways datasets - a basket of 200 stocks with certain minimum price / volume characteristics with the following criteria:
# 10-30% went up by more than x % over a given time
# 30-50% stayed within x% of the start price over a given time
# 10-30 % went up more than x % over a given time

3) A number of Bear datasets - a basket of 200 stocks with certain minimum price / volume characteristics with the following criteria:
# 5-20 % went up by more than x % over a given time
#10-30% stayed within x% of the start price over a given time
# 60-80% went up more than x % over a given time

I wonder if anyone has attempted to do this with their trading systems, to see how robust they are in certain types of markets, or am I barking up the wrong tree here?
 
Re: Backtest your way to financial security.

It's Snake Pliskin said:
Bob,

4. Intuitively trading?

Yes Snake
You subconsciously sense when to make that trade .

Michael- Thanks for your reply, you said that you don't place a stop in the market, I understand why, but could you expain in your own words for others.

Like to know more of your thoughts on backtesting " discretionary " as markets follow volume this may be a challenge.

Cheers Bob.
 
Sorry didn't proofread this properly; should be a-b% went down more than x% for the third category in these scenarios
 
"I wonder whether it would be better to back test on a variety of data sets you can create with certain characteristics."

This is a very good idea. You could also great random data sets or ones just based on the alphabet. You can also test different time periods and do walk forward testing using something like Fred's IO (Intelligent Optimizer). Monte Carlo testing that Tech mentions above also give insights into performance with different stock selections.

I like to have at least 5 years worth of data. It's interesting to watch the market change over time - companies come and go. The dataset is not static and I cannot guarantee that is is 100% correct. It's great to have the 1999 to 2003 period in the tests.

I guess the obvious thing to say about back testing and trading systems are that there are no guarantees. I am trading systems that I developed back in 2002 and 2003 using the market data from the period prior to 2003. These same systems test quite well now and have performed to expectations given the market conditions. So they forward tested well! I feel reasonably confident that they will perform going forward, although I have been fortunate, as many have, favourable market conditions have prevailed since 2003.

Tech and some others that use long term mechanical trading systems have shown that systems do work. Some are very surprised at the money they have made using a system (my very trusting brother is one!). At the same time other less well thought out strategies / traders have done a lot of damage. I have seen people post that they put all there money into Telstra and have lost 40% of their equity! A "no strategy" (have a punt, it can't go down anymore) style buy and hold strategy is not for me. But each to their own, what works for one doesn't work for another.

Stevo
 
I guess the obvious thing to say about back testing and trading systems are that there are no guarantees.

Ah yes.

But what you do have a clearly defined parameters that will tell you if the system is no longer working al la turtle system.
OR
If it trades outside the know parameters you have early warning that something is seriosly wrong. IE market conditions havent been seen like those being traded in the test period.
OR
The system is failing.
OR
Your system testing was/is flawed.

Like Steve I have been trading 3 systems designed using data from 1996-2002 and all have not traded outside those parameters delived during testing.
 
Re: Backtest your way to financial security.


I don't place a stop in market because backtesting shows me that systems using such a stop have more drawdown and less profit than the exact same systems with an EOD stop not placed in the market. An intraday stop will get hit by extremes of panic selling.

Backtesting discretionary is exactly the same as backtesting mechanical except you have to backtest each trade by hand. Write down the plan. Pick a time to start the backtest. Find your entries. Walk each trade through to its exit. Note the results. Repeat and repeat.
 
For anyone interested- Amibroker has discretionary back testing capabilities. When you run it, it simply allows you to put in buy,sell,short,cover entries in manually, and will punch out all the same stats as a mechanical test. Quite handy for anyone interested.
 

Very nice!
 
Re: Backtest your way to financial security.

This is the same approach I take - the results test better without a stop placed in the market. Only I use a weekly timeframe because I haven't found an EOD strategy that is worth the effort. This is a much more relaxed approach with lower transaction costs due to less activity (129 trades over nearly 4 years). An ideal week for me is when I don't have to do anything - it makes taking a break much easier.

Obviously not for everyone but it suits me.

Stevo
 

Hi PF, how do you do this (can give me some terms to search the help file)?
 
Re: Backtest your way to financial security.


Michael,

Isnt discretionary backtesting the same thing as paper-trading in the sense of what you will get out of it in terms of results ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more...