Contribute

Contribute an indicator to the library by clicking here. Note you must be logged in.

New! Stock Portfolio Organizer is now available:
  • Shares, Margin, Futures and Forex
  • EOD and Realtime data
  • And Much More...
GoTo Stock Portfolio Organizer
New! WiseTrader Toolbox for Amibroker is now available with:
  • Advanced Adaptive Indicators
  • Advanced Pattern Exploration
  • Neural Networks
  • And Much More...
GoTo WiseTrader Toolbox

Popular Indicators

Heiken Ashi for Amibroker (AFL)

3 / 5 (Votes 17)

Heiken Ashi indicator is like a smoothed candle stick chart that lets you spot trends easier and faster then the standard candle stick chart.

Here is a screenshot of how the indicator looks:
Heikin-ashi

Similar Formulas

Formula

24 Comments

1. MTRIG

Heikin-Ashi is one of the best charts to look at to quicky determine the trend.

MTR Investors Group is the only web site where you can find Heikin-Ashi charts online.

Heikin-Ashi at MTRIG.com

2. avram

This is one of the best indicators I have come accross. Thanks.

3. marti80

Do you have Metastock formula?

This can’t be coded in Metastock. Metastock does not allow one to create custom charts.

5. RAMSES

Very nice indicator. Thanks!

perfect indicator but use it wisely :)

7. mahnooj

Great indicator…..Thanx..

8. reaz

Fatafatii .. enjoyable indicator

IS IT POSSIBLE TO CHANGE THE COLOR OF THE CANDLE TO PLOT INTRADAY HIGH AND LOW IN A DIFFERENT COLOR OTHER THAN GREEN OR RED, SO THAT IT IS EASY TO SPOT WHEN INTRADAY HIGH AND LOW WAS FORMED.THANKS

10. Wach

Heikin-Ashi is great tool, if the trend is your friend then get this indicator. They bring youthful energy to old good candlesticks.

Heikin-Ashi is great tool, thank you very much

12. najem14

Very nice

13. ROAHIT160

how to use it?
mail me at rohit.singh160@gmail.com

Good one..Go on with this kind of Indicators

15. halfman

Heiken Ashi is a good and powerful indicator. To use it, you can try as I suggest.

1. When the trend is up, focus on candle’s body. I usually ignore the shadow since the body will give more informations. Whenever the body become smaller, it indicates weakening.

2. When the trend is down, focus on the candle’s shadow. I usually ignore the body since the shadow will give more informations. Whenever the shadow become longer, it indicates 2 signal : continuation or reversal.

Combine it with your other favorit indicator to get the best result. Hope this can be helpful.

FYI, don’t bother to consider Heiken Ashi as Japanese Candlestick because both works in quite different ways.

16. bobaloo

Thanks…Been looking for an HA for Amibroker

17. manojin1

Chart show good, I try then Comment

Hi,
Can someone tell me how to plot buy sell signals for heikin ashi?
Meanin that it buys when candle turns green and sell when red…

19. morgen

ritvikshankar, add this:

//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//FORMULE
stochup= StochK()>StochD() ;
MACDup= MACD()>Signal() ;
Hist= MACD()-Signal() ;
Histup= Hist>Ref(Hist,-1) ;
HAup= HaClose>=HaOpen ;
BuyHa= HaClose>=HaOpen ;
SellHa= HaClose<HaOpen ;
//======================================================================

//PARAMTOGGLE

// This combines indicators into one timing Signal
//function ParamOptimize( description, default, minv, maxv, step )
//    { return Optimize(description, Param(description,default, minv, maxv, step ), minv, maxv, step ); }
tgl = ParamToggle("Result", "AND logic|Compare");
// switch test calculation and compare the results
if(tgl)
{
myBuy = BuyHa AND macdup AND histup AND stochup ;           
myShort = SellHa AND !histup AND !stochup ;            
}
else
{
myBuy   = IIf( HaClose>=HaOpen AND MACD()>Signal() AND Hist>Ref(Hist,-1) AND StochK()>StochD()      ,1,0) ;                                                                       
myShort = IIf( HaClose<HaOpen  AND Hist<Ref(Hist,-1) AND StochK()<StochD()     ,1,0);
} 

Buy = ExRem(mybuy,myshort);
Sell = ExRem(myshort,mybuy);

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,haLow,Offset=-15);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,haHigh,Offset=-15);
20. mjorg

Has anyone bought the CD “Heiken-Ashi How to trade without Candlestick Patterns” from this site:
http://www.educofin.com/index.html

If so is it worth it?

Thnx

Marty

HI

I added the buy and sell formula, but it gives error on lin3 35 Col 64.
Saying that Variable hihigh used without having been initialized.

Please acknowledge.

Thanks
Prakash Modak

Hi

Please ignore previous comment, now its working fine. I have just changed the variable same as (hiHigh to HiHigh) which you have assigned in main code.

can you help me in another logic? need help in designing AFL based on AROON.
please contact on prakash.modak65[at}gmail{dot]com
Thanks

Hi
Can some one tell me how to use two colors in on HA candle i.e. in down turn it Red and Green and in up trend its Blue & Green in the same candle. for reference you can see the the YouTube https://www.youtube.com/watch?v=zN712u1Ma5s
Please post me details if you have on prakash.modak65@gmail.com

morgen how simple u wrote that code for buy sell.. great.

I’m new to afl’s.

Please login here to leave a comment.

Main Menu

Indicators

Sponsors