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

John


--- [EMAIL PROTECTED] 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.  


    
                                                                                
                        



      

Reply via email to