Wednesday, June 27, 2007

Gann Swing

One of the difficulties of the market is that there is too much information. The Gann Swing approach is a useful technique to reduce the amount of information so the market direction is easier to see. It is applied to OHLC Bar Charts.


The idea of the swing chart is to break the market down so you can see its direction. Here's the chart with the swing added


This is done as follows. Each bar in a bar chart can be classified as either Higher, Lower, Inside or Outside. A Higher bar has a higher High and Higher Low. A lower bar the reverse. An Inside bar has a higher low and a lower high, it does not exceed the boundaries set by the previous bar. An outside bar has both a Higher high and a Lower Low.

The swing is determined by identifying the High and low points of the swing. Each bar is looked at in turn. For this example I will describe an up swing but it is reverse for a down. For the swing to go up there needs to be two Higher bars in a row, if there is a Lower bar the count starts again. Inside bars are ignored and outside bars are skipped without changing the count, but the next bar needs to exceed the high of the outside bar to cause a change in direction


Now that weve determined the swing we can use this to determine the direction of the market. The market either goes up, down, or sideways. This tool is no good for determining a sideways trend but is very useful for up & down. The simplest definition of an Up trend is Higher High's and a Low trend is Lower Low's (Not exactly rocket science). Now that the Gann Swing clearly shows us the highs and lows we can tell the direction of the market by looking for when either the high or the low is exceeded. If we assess the direction as Up and a low is then broken by a lower low the direction is now down.


This helps to give some order to the market. Presumably if we buy when the trend is up and sell when the trend is down we should do OK. The only problem is when markets are sideways.
This is the first building block in the trading system, it helps give a reference to overall market direction, it also give support and resistance levels by identifying key Highs and Lows. My next blog will cover position sizing using this so that we will always know the maximum loss / risk

Metatrader - Free & Powerful

This blog will cover comments on my various indicators and experts posted on www.mql4.com. Metatrader 4 is an automated forex trading platform that can automate the trading process with the use of "experts". The platform is free, supplied by the brokerage company as an incentive to trade through them. Overall it is robust and widely used, with a very powerful programing language capable of implementing any trading strategy.

An expert is a program written in MQL that specifies the rules for opening and closing positions, with an ultimate aim of automating a profitable trading strategy.

I will also develop a number of custom indicators from trading concepts I have and give the background on how and why I've put them together

People are often rather secretive when discussing their trading strategies as there is a concern that if it is profitable it will be replicated and used by others, reducing the effectiveness of the strategy. I prefer an approach that sharing and discussing trading strageies can provide new ideas and improvements that will ultimately benefit all involved. Questions and feedback are welcome, also if you've got any interesting approaches let me know.

My approach is a technical one in which the only information used is the information contained in the price history, the reasoning behind this is that this is the only reliable and standardised information that can be easily factored into an automated trading strategy.

My first indicator I've decided to post is Drive. This indicator takes into account the open, high, low and close of each bar. You can download it from MQL4 at http://codebase.mql4.com/639

Value is calculated as follows:
Up (Green) = ((High - Open) + (Close - Low))/2, averaged for the selected period;
Down (Red) = ((Open - Low) + (High - Close))/2, averaged for the selected period.

The indicator displays a red and green line. When the green line is above the Red line the market has been bullish as the up drive is greater than the down. When the Red is above the Green the market is bearish.