如何保护狮子:关于Heiken-Ashi烛图

来源:百度文库 编辑:中财网 时间:2024/05/09 19:34:53

关于Heiken-Ashi烛图

作者:网络转载

Heikin-Ashi Candlesticks 是“Heiken-Ashi烛图”

基本算法:

HaClose = (open+high+low+close)/4;
HaOpen = (ref(Open,1)+Open)/2;
HaHigh = Max(high, Max(HaClose, HaOpen));
HaLow = Min(low,Min(HaClose, HaOpen));

实际算法比上述复杂。

5 simple rules for modified candle and they can be easily remembered:
理解烛图更迭的意义时须记住以下五个简单原则:

Rule 1 : Positive candle means “BUY” (Basic Rule) Negative candle means “SELL”
1.阳烛图表示“买”(约定的基本原则),阴烛图表示“卖”。

Rule 2 : Positive candle with upper shadow means “strong BUY” Negative candle with lower shadow means “strong SELL”
2.带上影的阳烛图表示“强势买”,带下影的阴烛图表示“强势卖”。

Rule 3 : Positive candle with lower shadow means “weak BUY” Negative candle with upper shadow means “weak SELL”
3. 带下影的阳烛图表示“弱势买”,带上影的阴烛图表示“弱势卖”。

Rule 4 : Candle shorter than previous day means “an indication of a Change”.
4.烛图长度短于前一期时意味着“即将转势”。

Rule 5 : Very short candle (especially cross-shaped) means “a Change of the trend”.
5.烛图长度很短时(特别是十字星出现时)意味着“趋势翻转”。  

Heikin-Ashi: A Better Candlestick ???

作者:网络转载

Most profits (and losses) are generated when markets are trending–so predicting trends correctly can be extremely helpful. Many traders use candlestick charts to help them locate such trends amid often erratic market volatility.

The Heikin-Ashi technique–”average bar” in Japanese–is one of many techniques used in conjunction with candlestick charts to improve the isolation of trends and to predict future prices. Calculating the Modified Bars Normal candlestick charts are composed of a series of open-high-low-close (OHLC) bars set apart by a time series.

The Heikin-Ashi technique uses a modified formula:

xClose = (Open+High+Low+Close)/4 o Average price of the current bar

xOpen = [xOpen(Previous Bar) + Close(Previous Bar)]/2 o Midpoint of the previous bar

xHigh = Max(High, xOpen, xClose) o Highest value in the set

xLow = Min(Low, xOpen, xClose) o Lowest value in the set
&<60;

Constructing the Chart

The Heikin-Ashi chart is constructed like a regular candlestick chart (except with the new values above). The time series is defined by the user–depending on the type of chart desired (daily, hourly, etc.). The down days are represented by filled bars, while the up days are represented by empty bars. Finally, all of the same candlestick patterns apply.


Here is a normal candlestick chart:

Here is a Heikin-Ashi chart:

Putting It to Use

These charts can be applied to many markets; however, they are most often used in the equity and commodity markets.

Traders often program these new instructions into existing trading programs, such as MetaTrader, or use many online tools (listed in the reference section below).

Finally, it can be applied via Microsoft Excel or other similar spreadsheet programs.

There are five primary signals that identify trends and buying opportunities:

  • Hollow candles with no lower “shadows” indicate a strong uptrend: let your profits ride!
  • Hollow candles signify an uptrend: you might want to add to your long position, and exit short positions.
  • One candle with a small body surrounded by upper and lower shadows indicates a trend change: risk-loving traders might buy or sell here, while others will wait for confirmation before going short or long.
  • Filled candles indicate a downtrend: you might want to add to your short position, and exit long positions.
  • Filled candles with no higher shadows identify a strong downtrend: stay short until there’s a change in trend.

These signals show that locating trends or opportunities becomes a lot easier with this system.

The trends are not interrupted by false signals as often, and are thus more easily spotted.

Furthermore, opportunities to buy during times of consolidation are also apparent.

Conclusion


The Heikin-Ashi technique is extremely useful for making candlestick charts more readable–trends can be located more easily, and buying opportunities can be spotted at a glance.

The charts are constructed in the same manner as a normal candlestick chart, with the exception of the modified bar formulas.

When properly used, this technique can help you spot trends and trend changes from which you can profit!

 

Heikin-Ashi Explained

作者:Howard Arrington

The February 2004 issue of ‘Technical Analysis of Stocks and Commodities’ magazine contains an article by Dan Valcu titled ‘Using The Heikin-Ashi Technique’.&<60; Too often traders hear about a technique and think the ‘holy grail’ train is leaving the station and they rush to get on board without taking time to understand what it is all about.&<60; The purpose of this article is to comment in greater detail on the visual presentation created by the mathematics of the method.

Mr. Valcu says that ‘heikin’ in Japanese means ‘average’ and ‘ashi’ means ‘bar’.&<60; So a literal translation would be ‘average bar’.&<60;&<60; Indeed, the method employs an averaging technique as follows:

  • haClose = (Open + High + Low&<60; + Close) / 4
  • haOpen = (haOpen(previous bar) + haClose(previous bar))/2
  • haHigh&<60; =&<60; Maximum(High, haOpen)
  • haLow&<60; =&<60; Minimum(Low, haOpen)

Now for those who have pulled out the Valcu article and compared his formulas with those given above, please do not be too quick to claim that I made a mistake in plagiarizing the formulas.&<60; My formulas are equivalent and it represents one of the criticisms I have.

haHigh and haLow

Mr. Valcu’s formulas in the article were give as:

  • haHigh&<60; =&<60; Maximum(High, haOpen, haClose)
  • haLow&<60; =&<60; Minimum(Low, haOpen, haClose)

It is mathematically impossible for the haClose to be higher than the bar High, or lower than the bar Low.&<60;&<60; haClose is an average of the bar’s open, high, low and close.&<60;&<60; The open must be in the high-low range.&<60; The close must be in the high-low range.&<60;&<60; The low must be equal to or lower than the high.&<60; Therefore, the haClose can never be higher than the High, nor lower than the Low.

Because the haClose can never be higher than the High, the Heikin-Ashi High does not need to test for the haClose as a possible price that would set haHigh.&<60;&<60; Choosing the higher of High and haOpen is sufficient.&<60;&<60; The same reasoning applies to picking a price for the Heikin-Ashi Low.&<60;&<60; Choosing the lower of Low and haOpen is sufficient.&<60; haLow does not need to consider haClose because haClose will never be lower than the Low.

I consider it unfortunate that Mr. Valcu did not understand these principles before he published his article.&<60; And, every programmer who published script code to implement Heikin-Ashi in their charting package used the Valcu formulas with scripts similar to this example:

  • haHigh = MaxList( H, haOpen, haClose);
  • haLow = MinList( L, haOpen, haClose);

Not one of the twelve programmers who published scripts in Stocks and Commodities magazine pointed out that testing for haClose is unnecessary because it is an impossibility.&<60;&<60;&<60; It does not hurt to test for it, but it is an unnecessary step.&<60; Missing something obvious like this makes me wonder just how much serious thinking is being made to understand what this technique is all about.&<60;&<60; Now, let’s leave that issue and continue with the analysis.
&<60;

haClose

The Heikin-Ashi Close is the average of four bar prices:&<60; open, high, low and close.&<60;&<60; This creates an interesting effect in strongly trending markets which I feel is misleading for chart readers.&<60; Let me illustrate the effect with the following example.

The example shows the original bar data in the top half of the chart, and the Heikin-Ashi method in the bottom half.&<60;Ensign Windows was used to prepare the examples.&<60;Bars 1 through 4 are strongly trending up, and bars 5 through 8 are strongly trending down.&<60;Now permit me to point out several things by comparing the two images.

The Heikin-Ashi data points are also shown on the original chart using small red dots, connected by solid red lines through the highs and lows, and a dotted red line through the closes.&<60;&<60; These dots and lines will aid in the comparison of what Heikin-Ashi is doing to ‘average’ the original bar data.

In an Up candle the haClose will always be below the actual close, and in a Down candle, the haClose will always be above the actual close.&<60;These two principles are illustrated by comparing the position of the close red dots to the bar closes in the Original chart image.&<60;In fact, haUp candles will ALWAYS have a high wick, and haDown candles will ALWAYS have a low wick.&<60;This is a built in behavior that may surprise most Heikin-Ashi candle readers.&<60;It is one of the primary areas I feel is misleading.

Note:&<60; haUp candles may or may not have a low wick.&<60;haDown candles may or may not have a high wick.

A wick on the top of a regular Up candle implies that selling pressure has moved the market back down from the high.&<60;Thus, I consider it misleading to see a high wick on a Heikin-Ashi up candle when no selling pressure is present.&<60;The inverse applies to low wicks.&<60;A wick on the bottom of a regular Down candle implies that buying pressure has moved the market off of the low.&<60;Again, it is misleading using conventional interpretation for low wicks to be present on a Heikin-Ashi down candle when no buying pressure is present.

Mathematically the haClose can never exceed 75% of the original bar’s range.&<60;75% would be achieved when the Open and the Close occur at the extreme of the bar’s High.&<60;In that case, haClose = (H+H+H+L)/4.&<60;&<60;

Simple example:&<60; O=4, H=4, C=4, L=0,&<60; so haClose = 12 / 4 = 3&<60;&<60;

So the maximum haClose value is 3/4th of the range because the range was 4.&<60;Thus the high wick size in an Up candle will be 25% of the original bar range or greater.&<60;The low wick size in a Down candle will be 25% of the original bar range or more.

In the Chartpoint Magazine, No. 12 (2003), Yashuji Yamanaka gives five rules for trading the Heikin-Ashi charts.&<60; His Rule 2 reads, ‘Positive candle with upper shadow means “strong BUY”‘, and ‘Negative candle with lower shadow means “strong SELL”‘.&<60;I have proved out that every haUp candle must have a high wick, and every haDown candle must have a low wick.&<60;Therefore, Rule 2 would have EVERY Heikin-Ashi candle be either a ’strong BUY’ or a ’strong SELL’.&<60;This obviously is not the case, so I must conclude that Yamanaka’s Rule 2 is an illogical statement.
&<60;

haOpen

The haOpen formula can be stated more simply as the midpoint of the prior Heikin-Ashi bar’s candle body.&<60;See the graphical illustration of this where the cyan lines from the prior bar’s candle body range point to the candle body midpoint.&<60;This midpoint is used as the open of the following Heikin-Ashi bar.

The haOpen can be outside of the original bar’s range.&<60;Therefore, the range of the Heikin-Ashi bar is extended to include the haOpen price.&<60;This extension is done by choosing the higher of High and haOpen for the haHigh, and the lower of Low and haOpen for the haLow.&<60;Mr. Valcu describes this process as eliminating ‘irregularities from a normal chart’, and creating a ‘better picture of trends’.&<60;My opinion is that this process is creating misleading perceptions.&<60;Let’s look again at the example.

One misperception in the Heikin-Ashi chart is the absence of gaps.&<60;&<60; There are 6 gaps in the original chart and they have all been ‘averaged’ out of the picture.&<60; If gaps mean something to you either as an indication of momentum or a price level that will eventually be filled, you will have to do without that insight when you use Heikin-Ashi charts.

Another misperception in the Heikin-Ashi chart is the length of the bars.&<60; In our example many of the HA bars are twice as tall as the original bars.&<60; HA bars will always overlap a portion of the bar on its left-hand side.&<60; In the up trending portion of the example, the HA Lows are all lower then the original lows, giving the impression the market traded at prices during that time period when no such trading occurred.&<60;&<60; As an example, consider bar #3.&<60; The original bar price range is from 700 to 740.&<60;&<60; The Heikin-Ashi bar implied that during the #3 time period, the trading was from 640 to 740.&<60; That is misleading.&<60; The visual presentation does not make any differentiation between the portion of the range that is actual and the portion that is invented.

Another misperception is the combination of bar #4 and bar #5.&<60; On the original chart, these two bars make a formation known as a Key Reversal Pair.&<60; That significant information is totally lost in the Heikin-Ashi chart.&<60; In fact, bar #5 on the HA chart is shown as an Up candle which is 100% opposite what actually happened.&<60; That too is misleading in my opinion.
&<60;

Summary

I guess by now you have concluded I am not overly impressed with the Heikin-Ashi method.&<60; It may be serving a beneficial purpose for many of you, and if so, that is wonderful.&<60; I encourage you to continue using what works for you.&<60; Heikin-Ashi charts are included in Ensign Windows because users asked for it.&<60; But, I do not know if it is going to help anyone trade more profitably.&<60; Seasoned trader Ira Tunik recently stated,&<60; ‘There are those that are constantly looking for the Holy Grail and [think] every new or revived study or tool is necessary.&<60; Over the years I have found that the majority of the exotic, complicated and supposedly new studies don’t help anyone’s trading ability or profitability.’

Whatever the case may be, at least by reading and understanding the points made in this article you will be using the Heikin-Ashi method better informed about how it is creating ‘average bars’.