EA signal

 

Hello,

 

Waht I need to write in the EA code if I want that every time the indicator(attach) change color the EA will open BUY/SELL order?

Files:
 

I read what you sens and also read about iCoustom function,and I stell don't know how to make the EA know when the indicator changing color

 
MF10000: I stell don't know how to make the EA know when the indicator changing color
You look in the data window and find out which buffers correspond to which color.
 

Thanks,

I found which buffers correspond to which color,but the problem is that I don't know how to write the if() function that it well give BUY/SELL signel when the colors change.

 
learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
 

Of course not,it is not what I want you to do.

void CheckForTrade()
{
double HMAlong = iCustom(NULL,0,"HMA_Russian_Color",21,0//buffer,1//Shift);
double HMAShort = iCustom(NULL,0,"HMA_Russian_Color",21,1//buffer,2//Shift);

if(????-Here my problem,I dont know what to write.)
}
Reason: