[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Heikin Ashi Candle display.



PureBytes Links

Trading Reference Links

Here you have it:

Op[0] = O[0];
Hi[
0] = H[0];
LO[
0] = L[0];
Cl[
0] = C[0];

for( i = 1; i < BarCount; i++)
{
   Op[i] = (Op[i-
1] + Cl[i-1])/2;
   Hi[i] =
Max(H[i],Op[i]);
   Lo[i] =
Min(L[i],Op[i]);
   Cl[i] = (
O[i] + H[i] + L[i] + C[i])/4;
}

Condition = Cl>OP;
Color =
IIf(Condition, colorBrightGreen, colorRed);
SetBarFillColor( IIf(Condition , colorGreen, colorDarkRed) );
PlotOHLC(op,hi,lo,Cl, "", Color,styleCandle);




John J wrote:
Hello,

I am looking for ways to control the Heikin Ashi
candle body display? 

For example, the normal candle plot, draws a white
body candle if the current candle's close is higher
than previous candle's close and a black body if the
current candle's close is lower than the previous
candle's close.  

 I am looking either to display all white body candles
or black body candles irrespective of their current
close with reference to the previous candle's close. 

The idea is to highlight the up or down move only
through color coding..

Any suggestions?

John.

  

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___