Sharing investing and trading ideas. Helping traders get started.
Advertisement

Tuesday, May 1, 2012

Aroon Indicator / Oscillator - Backtest Results and Implementation Issues

Aroon Indicator / Oscillator AI / AO - Backtest Results and Implementation Issues 
Discusses basic issues and results when attempting to back-test the AI and the AO indicators

Data: S&P500 Emini Futures
Futures Contract Rollover: Arbitrarily set on second Friday of every Mar, Jun, Sep and Dec
Period: 28 Dec 2008 - 31 Mar 2012 (Hourly Chart)
VBA Code: Method B of Code
Excel Version: 2010

Note: When I wrote the post for the Aroon Indicator VBA code, I wrote it in the context as though the Aroon Indicator and Oscillator can only be used on a daily basis. This is not necessarily always the case. In this case, I used the Aroon Indicator on the same hourly data as with all other backtests. 

Click here for background information, formula, calculation steps and the entire VBA code.

There are multiple variations on how to apply an indicator. I seek your understanding that the work done below are experiments and are for information purposes only.

Summary of Results 
While the Aroon Indicator has been described as a "trend" type indicator, I found that it behaves more as a price reversion indicator in the context of hourly data. Like the adaptive price zone (APZ) indicator, commonly known applications of the Aroon Indicator turned out to be loss making, requiring an inversion of the trading rule. While the Aroon Indicator (and the final trading rules used) is profitable before transaction costs, the key challenge lies with tweaking it to be profitable AFTER costs. Average profit per trade is only 0.2 index points per trade. 

Procedure in Brief
Pasted the code into Excel with changes made as per comments in code to direct application to ranges with input data (High, Low, Close columns). Screen Shot 1 shows the output (the last two columns).  

Screen Shot 1

Detailed Findings and Results
Period is set at 5 - This means that the formula looks at only the last five hours of data in the calculation of current hour Aroon Indicator value.

Summary of Trading Rules -

1) If Aroon Up is larger than Aroon Down at the end of each hour, SHORT in the next hour
2) If Aroon Down is larger than Aroon Up at the end of each hour, LONG in the next hour.
3) Otherwise, carry forward previous hour's position.

This set of trading rules generated 869.5 index points of profit (before transaction costs) on a large set of 4,146 trades. Average return per trade is 0.210 points on a standard deviation of 6.328 points. The success rate of this strategy is very high. 63.9% of the trades were profitable (before transaction costs and slippage). The profit trajectory of this indicator and trading rules is shown in Chart 1.

Chart 1: Aroon Indicator Cumulative Profit (Before Costs)

Conclusion
This set of trading rules and the indicator used generated a lot of trades. As a result, the standard error of the mean return is very small due to the formula used, which is standard deviation of returns of each trade divided by the number of trades. In turn, standard statistical distributions, such as the student t-statistic and normal z-statistic are significant when computed for this strategy. 

However, I have my doubts over the significance of these statistics. Due to the long tail nature of financial data, standard distributions may not correctly present the distribution of the returns of this strategy. Maybe this statistical significance will disappear when the correct statistic is used. 

Furthermore, I have repeatedly emphasized that the returns I calculated exclude commissions and slippage. I believe that this naive strategy on its own may not be profitable once I incorporate these costs.

The Aroon Oscillator measures the difference between the Aroon Up and Aroon Down indicator. As such, my trading rules are a form of the application of the Aroon Oscillator. 

Further research, in my opinion, can be in the application of these naive trading rules to larger time frames, e.g. daily, half-daily charts, which are more likely to generate less trades and lower trading costs. However, at larger time frames, the behaviour between price movements and the Aroon Indicator may change and may require the trading rules to be adjusted.

Any suggestions or comments are welcome.



Like what you have just read? Digg it or Tip'd it.
The objective of Finance4Traders is to help traders get started by bringing them unbiased research and ideas. Since late 2005, I have been developing trading strategies on a personal basis. Not all of these models are suitable for me, but other investors or traders might find them useful. After all, people have different investment/trading goals and habits. Thus, Finance4Traders becomes a convenient platform to disseminate my work...(Read more about Finance4Traders)

10 comments:

Anonymous said...

A sample backtest worksheet with some data would be really useful for us to follow your work and maybe even contribute to your effort

shinju said...

I was initially hesitant about putting up a sample spreadsheet because it is not legal for me to redistribute data that was sold to me for personal use only.

Let me work on a sample version with random data.. Will update my post these few days.

Anonymous said...

That would be great .. Here is a source of ES tick data(public) although you might have to aggregate it to bars

(http://exceltrader.net/wp-content/uploads/Archive.zip) and a bunch of resources too.

shinju said...

I have created a sample spreadsheet for your reference and commentary. The link is here https://sites.google.com/site/finance4traders/

Just download the first file on the site. Its obvious.

Roger Yang said...

Hi Shinju. I am not sure how to contact you otherwise, so I decided to post. I am researching algorithmic strategies as well right now. At this point I have downloaded a lot of data already (5gb), so I am running backtests. I would like to keep in contact with you though. Are you on LinkedIn? My page is at: http://www.linkedin.com/in/rogeryang1 . Please feel free to add me. :)

Stefan said...

The backtest of the Aroon Indicator (portfolio of 42 futures markets): http://www.oxfordstrat.com/trading-strategies/aroon-indicator-crossover/


ADmin said...

The discriminating article as a rule be the increasingly grave of all exposition sorts, and most likely the singled out case that needs the most hard work.

ADmin said...

The discriminating article click here as a rule be the increasingly grave of all exposition sorts, and most likely the singled out case that needs the most hard work.

Daniel Lee said...

This indicator does not beat a random toss when tested on a large sample of data.
essayswriters.org/dissertation

hanleybenson said...

very interesting, good job, and thanks for sharing such a good blog. Enjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. Thank you and good luck with the upcoming articles

Interesting stuff to read. Keep it up.This Blog is interesting and please checkout for more information Fencing Supplies In Australia.

Post a Comment