Newbie. How do I check that the color of Heiken Ashi indicator is Red or White?

To add comments, please log in or register
Peter
24
Peter  

Hi Guys,

I've tried to decipher the past posts on this subject but cant get code to work.

I looking for a Heiken Ashi close above/below a MA. That parts done.

If its going Up I want to see two White bars IE [1] & [2], for confirmation and two Red bars for downward trend.

I don't know how to code for the bar color identification.

iCustom(NULL, NULL, "Heiken Ashi",Red,White,Red,White,3,1) 

iCustom(NULL, NULL, "Heiken Ashi",Red,White,Red,White,3,2)

This is what I have to declare the bars I'm interested in but I want to know if they are Red or White (default Heiken Ashi candle colors)


Hope someone can give me a few clues.

Thanks

qjol
3196
qjol  
double OPEN = iCustom(NULL,0,"Heiken Ashi",Red,White,Red,White,2,0);
double CLOSE = iCustom(NULL,0,"Heiken Ashi",Red,White,Red,White,3,0);

if (OPEN > CLOSE)
   Alert ("its Red");
else
   Alert ("its White");
Peter
24
Peter  
qjol:

Thank you
To add comments, please log in or register