chops_a_must
Printing My Own Money
- Joined
- 1 November 2006
- Posts
- 4,636
- Reactions
- 3
Stevo an excellent post with premise.stevo said: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
chops_a_must said:I have decided to heed the advice of good old Rummy,
"Plan backwards as well as forward. Set objectives and trace back to see how to achieve them. You may find that no path can get you there. Plan forward to see where your steps will take you, which may not be clear or intuitive."
However, I'm hoping you can make things seem a little clearer for me than poor Donald did, and if you can offer me tips/ free software for backtesting, that would be great.
Cheers in advance,
Chops.
stevo said: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
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
chops_a_must said:I have decided to heed the advice of good old Rummy,
"Plan backwards as well as forward. Set objectives and trace back to see how to achieve them. You may find that no path can get you there. Plan forward to see where your steps will take you, which may not be clear or intuitive."
However, I'm hoping you can make things seem a little clearer for me than poor Donald did, and if you can offer me tips/ free software for backtesting, that would be great.
Cheers in advance,
Chops.
CanOz said:Me too Chops, i posted some stuff on the other thread on backtesting started by snake, maybe the moderators would move my comments to this thread as its all related. Nizar is quite interested as well.
Cheers,
It's Snake Pliskin said:
If it trades outside of the blueprint then you would stop trading the system as market conditions would be such that they are outside ANY TESTED conditions and as such are UNKNOWN.
Yes! Now I know what you meantech/a said:So then really until the new unknown becomes the now known it is best to suspend the known when it is in unknown territory.
Thats something which I have yet to know as the known is and has stayed within the known.
Bahaha!tech/a said:So then really until the new unknown becomes the now known it is best to suspend the known when it is in unknown territory.
Thats something which I have yet to know as the known is and has stayed within the known.
1. Rules are rules for a good reason. It's very difficult to improve on a system by using discretionary trade filters. Most of my biggest/best trades were the crappiest looking charts on entry. Conversely, the "can't lose" charts usually do lose. One added entry filter which seems to help many long systems (but test your system with and without it) is CLOSE>OPEN.Bin57again said:1. Entry signals
Some days you'll look at a signal and think "gees, I'm not sure about this but anyway, my rules say enter so I'll enter?"
2. Exits/stops, etc
There you are with your trend following system with 50 trades in a year, with a boat load of commissions, heavy tax bill and only parts of a move, when Jimmy FinReviewMan next door who knows F All except what Kohler says has his ANZ, BHP, etc for a year and nets 30%+.
Bin57again said:Tech/Stevo
Good advice. Thanks.
I'm struggling with system development at the moment. My biggest problem is getting comfortable with the system I'm trading. I have 2 specific problems. Can you guys give me a hand please?:
1. Entry signals
Because MA crossovers or oscillator systems or other well known mechanical set-ups throw up so many signals, when I review the trade reports, I think to myself "how do I eliminate those losing trades?". I remind myself to focus on expectancy not on being right but the pull of improving entries is always with me. You know what I'm going to say next - off I go to the Holy Land to find the Holy Grail. I never find a way to improve the entries. Do you guys just accept that on some days you'll look at a signal and think "gees, I'm not sure about this but anyway, my rules say enter so I'll enter?"
2. Exits/stops, etc
Mark Douglas, Van Tharp et al all say that systems are judged by their exits, etc. Seems good advice. How can you argue when such authorities say "know your risk, know when to take profits, do it consistently, it's just a numbers game?" You'd be mad not to take their advice. But then, there you are with your trend following system with 50 trades in a year, with a boat load of commissions, heavy tax bill and only parts of a move, when Jimmy FinReviewMan next door who knows F All except what Kohler says has his ANZ, BHP, etc for a year and nets 30%+. Sure, OneTel and TLS, but a well diversified portfolio of quality ASX stocks looks great.
I want to be a trader so bad but I'm not getting something. What am I missing?
Best regards
Bin
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?