Download MetaTrader 5

Need help in heiken ashi ea

To add comments, please log in or register
Interested in MetaTrader 5 features? Learn more about them!
Mahfoud Allali
324
Mahfoud Allali 2015.10.11 18:53 

help me to add code if hieken ashi bar change color close all  

i use this code 

bool heiken30()

{

double Heiken_op30 = iCustom(NULL,30,"Heiken Ashi",Red,White,Red,White,2,0);

double Heiken_cl30 = iCustom(NULL,30,"Heiken Ashi",Red,White,Red,White,3,0);


if(Heiken_op30 < Heiken_cl30)

return(true);

else if (Heiken_op30 > Heiken_cl30)

return (false);

return(EMPTY_VALUE);


To add comments, please log in or register