Jack, I'll ship this to you but from here on out you must promise to look in
the program library. (:>
HTH
Joe L.
////////////////////////////////////
//
// Heikin_Ashi For Amibroker
//
////////////////////////////////////
SetChartBkColor(ParamColor("Outer panel color ",colorLightGrey)); // color of
outer border
SetChartBkGradientFill( ParamColor("Inner panel color upper half",
colorGrey40),ParamColor("Inner panel color lower half",
colorGrey40)); // color of inner panel
HaClose =EMA((O+H+L+C)/4,3);
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
HaHigh = Max( H, Max( HaClose, HaOpen ) );
HaLow = Min( L, Min( HaClose, HaOpen ) );
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "Modified " + Name(), colorBlack,
styleCandle | styleNoLabel );
Title = "\n" + "" + Name() + ", " + Interval(2) + ", " + Date() + "\n";
Also in the program library.
http://www.amibroker.com/library/detail.php?id=714&hilite=StrFind
----- Original Message -----
From: jack
To: [email protected]
Sent: Sunday, July 15, 2007 7:04 PM
Subject: [amibroker] Heiken Ashi indicator
hi,
anyone has heiken ashi indicator? I found an article talking about its fomula
as below:
The heikin-ashi candlestick technique uses modified open-high-low-close
(OHLC) values and displays them as candlesticks. The modified values are
computed using these definitions:
• haClose = (O+H+L+C)/4
• haOpen = (haOpen (previous bar) + haClose (previous bar))/2
• haHigh = Maximum(H, haOpen, haClose)
• haLow = Minimum(L, haOpen, haClose)
is this the one everyone uses? if anyone has a working heiken ashi indicator
AFL file, please help uploading it or email to me.
thanks a lot
jack
------------------------------------------------------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of
spyware protection.