Featured Post Today
print this page
Latest Post
Tampilkan postingan dengan label beyond. Tampilkan semua postingan
Tampilkan postingan dengan label beyond. Tampilkan semua postingan

The Indicator Series The ADX beyond a trend range filter

I have to say that from all the indicators I have used in my career as a forex trader, the ADX (Average Directional Index) is the tool I dislike the most. The reason for this is probably because most traders have become accostumed to viewing the ADX as a range/trend condition filter when this is far from being an accurate use of this trading indicator. People who develop automated trading systems generally use the ADX to filter out trades (which I have learned is not a good approach) generating a global loss of statistical significance with a very small -if even present- improvement in profitability. On todays post I am going to talk to you about this indicator developed by Welles Wilder, I am going to go into its mathematical origin and into how it could be used successfuly for the creation of automated trading strategies. As always the most important thing is to understand what the indicator is telling you and how this information can be used to exploit tradable market inefficiencies.

First of all, the mathematical calculation of this indicator is not as straightforward as others since this tool has many different components. The Average Directional Index indicator is made up of three lines called DI+, DI- and DX. The lines are calculated according to the formula you see below (where the true range is mainly the highest value between the averages calculated, include the average of the close prices (current close - last close) of the N indicator period):

DI+ = Average of X periods [Current High - Previous High]/(Average of X periods of the True range)

DI- = Average of X periods [Current Low- Previous Low]/(Average of X periods of the True range)

DX = 100 * ((DI+)-(DI-)/(DI+)+(DI-))

So what is the indicator telling us ? Mainly the higher the values of DI+ or DI- the higher the difference between the current and past highs/lows becomes relative to the largest movement observed within the current and last candle X period average. However note that DI+ and DI- are not normalized and therefore we can only interpret them relative to each other. A higher value of DI+ over DI- indicates that in average higher highs where achieved while a value of DI- above DI+ indicates the opposite. The DX - which is normalized - compares the difference between DI- and DI+ and tells us what percentage this difference represents from the sum of both indexes. The value of DX will be higher as the difference between DI+ and DI- becomes larger effectively showing that during the past X periods the market has shown a prevalent movement in one direction.

The fact that the DX value seems to be related with prevalent market movement then does not imply that we can define trends/ranges clearly from the ADX. There are two reasons why this is mainly not a good use of the ADX indicator. First of all, the DX line is comparative meaning that if we have a quiet market period with low volatility but a steady up/down movement the indicator may interpret it as a trend. The second problem is related to the fact that you would have to select a "level" to use as a threshold between "ranging and trending" conditions, something which cannot be easily done. Usually if you attempt to enter trades in favor of "the trend" when the DX value is high you will find that the trend has already happened and you are just entering too late.

The ADX indicator however can be used to detect retracements given the fact that it can detect when a weakening from a previously strong trend has happened. For example, if the ADX reaches an extreme value (indicating strong market momentum) we could simply wait for a weaker DX value and enter the trade in the direction of the trend when the trend has apparently "ceased". Of course, we will enter upon a retracement, within a very good position to take advantage of future movements. Such a case is exemplified within the following chart.
-
-
As you see, the ADX indicator can be used for this type of purpose successfuly, not taking into account any range/trend filtering characteristics which are generally attributed to this trading tool. We take advantage of the fact that the indicator signals "what has already happened" and we use it to enter trades in favorable positions to exploit a tradable market inefficiency. Of course, developing a mechanical trading strategy based on this concept would require the development of additional closing criteria and trade analysis (to see which DX levels are adequate) but such an approach is bound to be a good start to develop a long term profitable strategy based on the ADX indicator.

If you would like to learn more about automated trading systems and how you can use systems developed with market adaptability and sound trading in mind to achieve long term profitability please consider buying my ebook on automated trading or joining Asirikuy to receive all ebook purchase benefits, weekly updates, check the live accounts I am running with several expert advisors and get in the road towards long term success in the forex market using automated trading systems. I hope you enjoyed the article !
0 komentar

Watukushay No2 Beyond My Expectations

A few days ago I wrote a post about the next EA in the Watukushay series. For those of you who have not heard about these expert advisors, the Watukushay project was an idea I had in order to develop and evaluate a series of different expert advisors with a careful documentation of the whole creation process. The idea is that people are able to see what the necessary steps are for the creation, programming and evaluation of a long term profitable trading system.

As I said on the last post, the Watukushay No.2 expert advisor is completely based on price action. I have just finished all the preliminary coding and evaluation and I have to say that this EA far surpassed my expectations. It took me a few weeks to find a way to build a profitable logic solely based on price action as candlestick patterns depend greatly on the context in which they occur and entering or exiting trades based on a single pattern proved to be a totally unreliable and unprofitable strategy. I tried at least 15 different candlestick pattern with non of them by themselves generating a reliable system.

Finally I realized that the problem was that my approach was too simplistics. I decided to apply the sound, logical trading advice we hear from our start in trading. I decided to only enter trades on a very popular candlestick continuation pattern (the three soldiers) and to exit a trade based on either an ATR adjusted TP or a series of candlestick reversal patterns, such as a hammer, morning star or engulfing candlesticks. As you would expect from such a sound trading approach, the results were overall profitable although there was still a lot of room for improvement.

This is when it came to my mind that I was defining candlestick pattern rigidly when in the market a hammer or a 3 soldier pattern was different in 2000, 2004, 2009, etc. Of course, the easiest solution was to adapt these patterns also towards market volatility. So what do you get ? You get a trading system that is absolutely adapted to the market, more than any other system I have ever coded. The EA adjusts the size of the candlestick patterns as well as the SL and TP based on market volatility and the EA is able to profit seaminglessly from Jan 2000 to Nov 2009. This EA has given one of the most beautiful equity curves I have seen. The EA uses a very wide TP (80% of the ATR) and a wide SL (100% of the ATR) and every identification of a candlestick pattern is done based on previous bar closes so it is safe to say that backtesting is reliable (although live testing will definitely confirm this) since there are no one minute interpolation errors and no hindsight whatsoever.

You can see on the backtest shown below the equity curve given by this EA. It is very smooth with every year reaching new equity highs. The EA has a very good risk projection with the maximum draw down being just 6% for each 10% average yearly profit one wishes to obtain. However this is in fact improved by the ATR lot size money management which when risk is increased achieves an incredible 100% average yearly profit with a maximum draw down of under 40%. The EA should also be pretty much broker independent as a few pip variations will not affect the overall candlestick patterns, however, brokers that have Sunday candles vs those that dont can show different results as the overall patterns may change. Up until now this have proven to be the best results for the EUR/USD, I run several tests on other currencies but it seems that the ATR values of the patterns change a lot depending on the instrument traded and therefore all the optimization needs to be redone for every currency pair traded.
-
-
I am very pleased with this EA, this is the first EA I ever code that used absolutely no indicators (besides the ATR) that is actually more profitable and smooth in backtesting than the gods gift ATR. Of course, this EA would be tested live on my weekly newsletter and all its programming and evolution will be a new chapter on my ebook. This chapter will treat how candlestick patterns can be defined in code and how I came up with each pattern as I progressed through the programming of the EA. I am currently writing this chapter which should be out in mid December and should be around 30-60 pages long. If you are interested in the Watukushay No.2 EA please consider buying my ebook on automated trading or subscribing to my weekly newsletter to receive updates and check the live and demo accounts I am running with several expert advisors. I hope you enjoyed the article !
0 komentar
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. forcasting forex - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger