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

Re: [amibroker] Heikin Ashi Candle display.



PureBytes Links

Trading Reference Links

Thank you apforex. color choices for the function 
should do the other way. 

John


--- apforex@xxxxxxxxx wrote:


---------------------------------
                
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
Ashicandle body display? For example, the normal
candle plot, draws a whitebody candle if the current
candle's close is higherthan previous candle's close
and a black body if thecurrent candle's close is lower
than the previouscandle's close.   I am looking either
to display all white body candlesor black body candles
irrespective of their currentclose with reference to
the previous candle's close. The idea is to highlight
the up or down move onlythrough 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
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/