EA signal

Back to topics list To post a new topic, please log in or register
avatar
17
MF10000 2015.04.12 18:16
 

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?

 

Attached files:
  hma_russian_color.mq4  (4.03 KB)
avatar
12983
avatar
17
MF10000 2015.04.12 21:01 #
 

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

 

 

 

 

 

 

avatar
12983
WHRoeder 2015.04.13 14:24 #
 
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.
avatar
17
MF10000 2015.04.13 14:51 #
 

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.

 

avatar
12983
WHRoeder 2015.04.13 20:02 #
 
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.
avatar
17
MF10000 2015.04.14 14:12 #
 

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.)
}

 

Back to topics list  

To add comments, please log in or register