MichaelD
Not fooled by randomness
- Joined
- 7 December 2005
- Posts
- 912
- Reactions
- 2
There's more to trading profitably as a business than just the basic entry/exit system. There's also the money managment side of the business, and the use of other people's money (later) to boost returns. It's also fallacious to look at system return as a % as the return will vary depending on market conditions. It's more important to consider system drawdown when designing a system.Bin57again said:How long did it take you to develop systems which perform better than 30%?
Depends on your time frame but if you target long term trend following as the best place to start developing a system, then you should start with Random Entry and a wide trailing stop (eg wide ATR stop or long term moving average stop) and go from there.Bin57again said:My edge is pretty poor at around 11 or 12%. What made a difference? Wider market filters or exits, etc?
No, there are no issues with a random entry. It should be considered the "gold standard" when developing a system. MOST systems will not perform as well as a system based on random entry, a powerful indicator of where system development effort should be concentrated. If you can improve upon random entry, you are doing well, but you need to have these results as a comparison baseline to know if you are doing good or harm with your extra filters.weird said:Michael, do you see any issues with a "Random Entry", and comparing backtesting results ?
stevo said:Bin
Good questions. I can give some ideas but really it is a matter of testing anything that appears to make sense, and some things that don't.
Some ideas;
1. Have you looked at different time frames?
2. Try using an index to determine times when it could be good to stand aside.
3. As an exercise look at a monthly time frame. Try something like enter when the stochastic goes above 50 and exit when it drops below 50. Add some things and see what happens. Try it with RSI, Bollinger bands, moving averages. Do the same in weekly and daily!
4. Look at ATR trailing stop on a weekly time frame.
5. Consider what sort of filter could weed out the slow movers. If a stock has little channce of moving at least 20 to 30% in 3 to 6 months then why trade it?
6. Consider position sizing. I am going to get much better test on a decent system if I use 10% of capital position sizing (ie pyramiding profits) versus a flat rate position sizing strategy - like $100,000 a trade. Consider fixed risk position sizing (1% or 2%) - this is what I use. A 10% return in one position sizing strategy might be a 20% plus return using another strategy.
7. To reduce trades look at increasing time frame.
8. I am not trying to beat buy and hold. I am trying to get a suitable return with reduced risk. Buy and hold is, for me, a very risky strategy. If I buy and hold the wrong stocks I am in serious trouble since I have no exit strategy.
I think entries are very important. Sure random entry can work with a suitable exit and position sizing, but a good entry will give the portfolio a bit more zing. But it is good to have a benchmark to beat. I did do some work with random exits and found that a good entry with a random exit beat a random entry system with a moving average exit.
http://drawdown.blogspot.com/2005/08/random-entries-and-exits.html
http://drawdown.blogspot.com/2005/08/random-entry.html
Excellent question.weird said:I would think with a random entry, it could be difficult to determine a sample size required for significance in statistical results.
Only you can answer what your tolerance is and how much buffer you want just in case. Obviously we want to maximize profit and minimise DD - but we can only do what a system / market can supply.Bin57again said:Stevo
I'm comfortable with a max.drawdown of $20,000. Is this enough of a buffer? Should I really only trade a system that has a max.drawdown of 50-75% of my tolerance? Could anyone recommend some monte carlo software? I'm not aware Amibroker has such a feature (is there anything which can be used in conjunction)?
As Stevo has said, the max drawdown you are comfortable with is something only you know, however a suggestion - devise a plan with 1/2 the drawdown you anticipate is your maximum tolerated. It's easy to say you can tolerate a drawdown of $20,000, but when it actually starts to get close to that it's pretty hard to keep trading, and that's exactly the time when you should keep to the plan.Bin57again said:Let's say I have a trend following system with annual return of 20%. Starting capital is $100,000 and max. drawdown for the year is $15,000. Standard error is $2000. Now, the important part - I'm comfortable with a max.drawdown of $20,000. Is this enough of a buffer? Could anyone recommend some monte carlo software?
StevoYou can do Monte Carlo in AB; http://drawdown.blogspot.com/2005/08/monte-carlo-with-ab.html
It's not as fast or flexible as TradeSim but with some basic Excel skills it can be done.
retroaugogo said:Hi Bin,
Here's some software that could interest you.
Rather than think of a system and then test to see if it works Stratasearch finds the best system for the data it is given.
Also has monte carlo simulations.
Haven't used it live yet but it's given me some nice numbers.
They have a 30 day trial.
If you end up using the program let me know.
Maybe we can swap notes.
Chops
I don't know of any decent free software for portfolio backtesting - don't waste your time. EOD Amibroker is $149 US, and as tech mentions is very good.
If you are serious about backtesting I would go for AmiBroker. I also use Amibroker combined with TradeSim. Tradesim is excellent. You can do Monte Carlo analysis with Amibroker and Excel as well even though it's a little slow. If you don't already know how to code in Amibroker then you will need to spend some time understanding the software and language by running through the tutorials etc
Some suggestions and ideas to get you started;
1. For starters select a universe of stocks to test on, but don't start with too few - at least 400 to 500 stocks. I use the All Ords stocks for basic testing. You should expand/ alter the universe if you think you have a good system.
2. Don't get bogged down in one time frame. Do some simple tests on daily, weekly and monthly time frames to see which one is easiest to work with. Stick to trading long strategies for starters - you will get confused if you try testing shorting strategies initially.
3. Test the sorts of things that are pushed in trading books all the time. Try out MACD, RSI, Stochastics, Bollinger Bands Donchian channels etc using the methods outlined in trading books. Try the different time frames and see what you think of the results.
4. Try OB /OS style indictators but also reverse the strategy - buy when overbought, sell when oversold. As an example take bollinger bands in a weekly timeframe using the traditional OB/ OS approach then reverse it. Add a trailing stop.
5. Settle on a timeframe (daily / weekly / monthly) that you are most comfortable with for your first system.
6. Take some of the ideas that you have obtained from testing the standard indicators and start experimenting with trailing stops. Try moving averages, donchian channels, ATR trailing stops and anything else you want to throw into the pot.
7. Stick with simple position sizing strategies for starters - 10% of equity or $10,000 per position on $100,000 capital. You can expand on these strategies later.
8. Ideally keep track of the results obtained in a simple spreadsheet or even hardcopy printouts - giving enough detail so you can repeat the tests in the future.
9. Don't worry about walk-forward testing until you have something that you think has a chance.
10. The same goes for optimisation. Just stick to the usual periods touted for indicators, or if you want to change them use something like known number sequences for convenience - 1, 3, 5, 8, 13, 21, 34, 55 etc. Use any sequence you like - they are not magical.
11. Always delay your trades. For EOD trade the next day, not on the close of the current day, EOW trade in the next week not the close of the week, etc.
This will probably take around 6 months maybe longer depending on your skills with Amibroker. I really don't have any comprehensive references on backtesting other than maybe the TradeSim manual. Leon Wilson's book - Breakthrough Trading could be useful. Obviously the online help for Amibroker is essential and there is a lot of stuff on the Amibroker Yahoo site.
Also - get decent data! Free data is useless for serious portfolio backtesting.
regards
Thanks T/A and Stevo!
I second that.
Some of the posts in this thread are GOLD.
Really PRICELESS
Nizar, I'm clearly getting the impression that that there is allot of trial and error in developing the entry signals, just a combination of things and when it backtests well in terms of accuracy, then apply an even better system of money management to it. The exits could be, as MD says discretionary EOD.
I think its time i get myself Amibroker.
Cheers,
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?