There are two ways to backtest that I know of using Amibroker;
Use the backtester
use the playback feature
Backtester - This requires some coding, coding that isn't required when trading live with Amibroker, Bracket Trader, and TWS. You have to watch out for a whole basket of different issues that can creep into the test. It remains a valuable tool.
Playback simulation - This is a great tool for practicing discretionary trading. It's also a great tool for testing your Bracket trader (BT) interface / system. If it would just work! I searched high and low and the net for some information on how to do this, or code that I could simply drop into Ami that would "make it happen". The good news is that I've finally got it to work, and surprisingly it wasn't to difficult to code, but getting the bug out was an issue.
Ive used it to test several days of 1 minute HSI system with BT to get the stats from it. The last thing I just completed tonight was exiting positions near the close. Still a few issues to work out with that. Still, the most difficult part is finding a system that generates a profit, I'm looking for a winning ratio of 40% or better.
Is anyone else using Amibroker playback in this fashion?
I was contemplating doing a video on this and posting the code. Not sure I want to spend the time to do it though.
Wednesday, January 13, 2010
Playback to Bracket Trader
Tuesday, December 1, 2009
HSI System
- allowable trading times
- shorting and buying switches to allow me to turn ON/OFF shorting or buying
The System
A brief description of each;
Friday, October 30, 2009
HSI / MHI Hang Seng
I've been searching the web for blog posts and forums to gain insight into the HSI. It seems some of the comments are dated. If you trade this I'd appreciate any feedback or information you can offer (what doesn't work, what works) from your experience. Here is what I have learned thus far;
It's technical intraday chart looks very technical and normal, the daily looks like its on crack, gapping all over the place. The opening gap break out seems to work well, gap and run. I've been using the first 5 to 8 minutes to gauge the direction and strength. Then I bottom fish and take the breakout for my position and let it ride. Last night worked perfect, huge gains, sold when the upwards trend line broke.
I also only trade the "morning session" up to about midnight EST, then its bedtime. The "afternoon session" seems to have a mind of its own, like a different day.
The first half of the morning session moves and trends, the second half can be choppy, the range (ATR) increases too. Just before each session closes the price goes nuts.
I've read that the market is heavily manipulated by technical traders? I'm not sure what that means, it looks like it has some structure on the 1 minute time frame.
Questions for you if you trade this;
- What is your daily target (in points or dollars)
- What is your daily loss limit?
- Do you trade specific time of the market?
- Do fibs work? I have noticed they work somewhat, good gauge of a pullback but I generally don't count on them.
- Do pivot points work? My guess is not since the gaps are huge, perhaps weekly pivots?
Any input would be helpful for me as I am building my strategy and plan for trading this puppy.
I also open up the chat room just before the market opens, its been quiet. Anyone know of any chat rooms for the Asian market?
Monday, October 12, 2009
HSI - Mini Hang Seng, and the big brother MHI
I live near Toronto, eastern time zone, I work during the day (not in the finance or trading field). I have free time after dinner and do some short term trading. Forex doesn't do much from 7pm to midnight unless you want to play ranges and scalp. Scalping doesn't work for me. I was looking to trade something that moves a little less choppy, has some liquidity, shows the volume, and can be traded technically. From my research which includes reading forums and blogs I have found the Asian markets are a good place for that. I'm taking trades at night on the mini Hang Seng futures (HSI).
Other contracts I have looked at include the following;
SPI - S&P/ASX 200 Index (Australia) APZ9-SNFE-FUT-AUD
mini Hang Seng Stock Index (MHI) MHIV9-HKFE-FUT-HKD
MSCI Taiwan Index @ SGX TWV09-SGX-FUT-USD
Be sure to adjust the symbol for the correct contract expiry before trading.
Of the above, I have chosen to concentrate on MHI. Here is the chart so far tonight, 1 minute time frame over several days. As you can see it trends nicely and has the odd gap fill. Trading shuts down for lunch time in Asia and when the come back there can be huge swings in the opening price, so trade small. I typically trade 1 or 2 contracts, depending on the set up. Right now the P/L is up and down, I'm learning the instrument and as long as I stay afloat and break even over the week I'm generally happy for now.
Intraday - HSI
Daily Chart - HSI
UPDATE:
Mr. Addict contributed a very valuable comment for those that trade MHI or HSI and use IB as their broker. Here is his comment, I've inserted the approximate USD equivalent values beside the HKD value so you can easily relate.
Addict said...
Why don't you try the full size contract, i.e., HSI instead of MHI? The bundled commish on MHI is 34 HKD (4.38 USD) per round trip and it's worth 10 HKD (1.29 USD) per tick. So price has to move four ticks in your favor to break even.
With HSI, the commish is 60 HKD (7.74 USD) per round trip, but each tick is worth 50 HKD (6.45 USD). So price only has to move two ticks in your favor to at least break even.
Better yet, go unbundled and you pay only 20.30 HKD (2.61 USD) per round trip for trading HSI, and 13.16 HKD (1.69 USD) for MHI. With unbundled, you need only one tick movement in your favor to break even with HSI, and three ticks with MHI.