Download MetaTrader 5
To add comments, please log in or register
Launch agents on an idle PC. It is profitable!
MF
51
MF 2015.04.12 16: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?

Files:
whroeder1
13592
whroeder1 2015.04.12 18:14  
MF
51
MF 2015.04.12 19: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

whroeder1
13592
whroeder1 2015.04.13 12: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.
MF
51
MF 2015.04.13 12: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.

whroeder1
13592
whroeder1 2015.04.13 18: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.
MF
51
MF 2015.04.14 12: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.)
}
/
To add comments, please log in or register