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?
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
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.
Of course not,it is not what I want you to do.
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