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

Support And Resistance My First Attempt to Implement Mechanical Detection of Important Price Levels

The detection of important price levels - so called support and resistance - is one of the most difficult things to do in algorithmic trading since their detection by the human eye seems to be extremely discretional, something that just pops out at an experienced trader when he or she looks at the chart. Through the past few years several attempts have been done to detect important support and resistance levels but most of them fail due to the fact that intermediate levels -which are not important - are often detected and used by computers when their real relevance is minimal. The question then arises : Can we algorithmically detect support and resistance levels in a reliable way ? Moreover, can we actually make a computer "know" the importance of each level ? Can we then develop a profitable system based on this detection ? On todays post I want to give my first set of answers to these questions showing you my first attempt at the computational detection of S&R levels and the achievements this technique has had up until now when used as part of a mechanical trading system.

On previous posts I had talked about how we could approach S&R detection in forex trading by using the fractal indicator (not the default but one that doesnt repaint) and performing a historical evaluation of the accumulation of fractals in certain zones, assigning a particular importance to each of these levels. However this approach seems to be a little bit complex so I decided to implement a much simpler approach in order to first evaluate the concept behind this way of "detecting" S&R levels. What I did was simply to use the High and Low levels of past candles counting their presence amongst different zones and assigning a "percentage value" to each price level pertaining to the "population" of historical candle high/low levels around this area. Areas that are heavily populated by hourly highs and lows and prone to be important daily support and resistance areas owing to the fact that price tends to "hug them" failing to move "straight through them".
--
The significance of these levels is then easily evaluated by the percentage population of each price level and we can easily measure if price is moving towards a zone with a high population or outside a zone with a high population. When price is trading within a highly populated area it will have a tendency to remain there while when price trades in a "population scarse zone" it will tend to go to a zone where more trading has happened in the past. As it is shown on the image above, we could create a system by entering a position after we "breakout" of a zone that has a high population value. It is good here to note that we dont use levels but zones using a given amount of space to gather a given high/low population, this is done due to the fact that in forex trading support levels tend to be "spread" over a given area instead of pined to a given level (this is a consequence of not having a central exchange).

What is the result of implementing this S&R "tactic" on an expert advisor ? Eventhough the results of my first analysis are not absolutely incredible, it does reveal that the above given way of measuring S&R level and entering trades has some merit and - at least - a positive mathematical expectancy and some potential for profitability. The below image shows you the equity curve of an S&R system implementing the above explained criteria for entering breakouts of S&R levels (10 year backtesting period Jan-2000, Jan-2010).
--
The system does most of the time what I intended it to do, entering trades after breakouts of S&R zones like it is shown on the image below. However the problem now becomes to know which period needs to be used to evaluate the S&R levels and what percentages are going to be required for any given S&R level to be considered important on different timeframes. As you may see, the population is an absolute number and we need to do a deep historical analysis to see what this number should exactly be to call a level "important or unimportant". Nonetheless I consider this step a very important achievement since there is now a way to measure the population of a given price level and some mathematical criteria to establish its importance. I will continue to develop and improve this S&R technique and there will most certainly be an EA with it in the future :o).
--
If you would like to learn more about automated trading and how you too can learn to use, design and implement your own likely long term profitable systems based on sound trading tactics 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

Defining Support Resistance Levels Mathematically A True Challenge for Automated Systems

I have always said that there is a lot of importance and potential in the trading of support and resistance levels in trading in general, and particuarly in forex trading. However it is true that the creation of long term profitable systems for automated trading based on the definition of S&R (support and resistance) levels has been difficult up until now due to the inherent problems of defining these levels mathematically. On todays post I want to talk about some of the approaches used to define these levels and the short commings each one of them has. On tomorrows post I will talk about what I think is the solution to the problem, a concept which may lead to the development of an automated system based on S&R levels which is able to gauge S&R level importance and trade the many techniques which can be derived from these levels in a profitable fashion.

So what is so difficult about the definition of support and resistance levels ? Theoretically a support or resistance level is an area (not a specific price value !) in which price finds a natural difficulty to continue to move in its previously acquired direction. So for example, if the EUR/USD is in an uptrend and there is a resistance level at the 1.3500 zone, price will get to this level and then it will bounce from it or consolidate around it until it either continues its previous trend or tests a lower support level.

Notice how many of the definitions of support and resistance are vague. What is a zone exactly ? how large must these zone be ? What parameters determine its size ? How could we know this level exists before price reaches it ?

The fact is that these questions have no straightforward answer. There is no rules for the size of the S&R zone, nor is there a way to accurately determine the levels before they happen. The previous attempts at coding automated trading system using S&R levels have tried to infere future S&R levels by taking information about previous levels in the past. The reality seems to be that a previously found support or resistance level will behave as either support or resistance in the future depending on from where it is attacked by price.

So the problem seems to be to find S&R levels in the past somehow and then use them in the future. If price faulters around a support or resistance level, then an intuitive way to define them is through the high/low criteria. A resistance is reached on the high of a candle followed by a candle of opposite direction and a support level is reached on the opposite situation. Another way to define these levels would be to use the fractal indicator. Since fractals determine patterns which signal reversals then the high or low of a fractal may indicate a resistance or support level.

The problems inherent to these very common approaches and other similar approaches is evident. All Support and Resistance levels are given and absolutely no importance is given to some over others. Another problem is that several fractals or high/lows may happen on similar levels but interpreted as different S&R levels when in reality they represent the same support or resistance zone. Since there is no discriminations between the S&R levels defined, these techniques of defining S&R almost always fail since they trigger trades on "not so important" price levels which make the strategies lack a positive mathematical expectancy.

So the steps to define S&R levels in a reliable fashion seem to be the following :
  • Define all S&R levels
  • Discriminate important from unimportant levels
  • Define Zones of S&R
On tomorrows post I will talk about how I intend to tackle each one of these problems and how I believe this will lead to the definition of reliable automated trading techniques based on S&R trading. If you would like to learn more about what I have done with automated trading and how you too can learn how to design and trade autoamted trading systems profitably 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
 
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