I'm in the making of an ea with the incredible steve's shell.
It is based on a step ma, and what i want is when the step ma changes color, we send a trend, we take our profit and we wait another change color to send the trade.
Here is how i include it in the shell :
Code: Select all
double clnow = iCustom(_Symbol,BuzzerTimeFrame,"Buzzer",Price,Length,AlertON,EmailON,3,clbar);
double clpre = iCustom(_Symbol,BuzzerTimeFrame,"Buzzer",Price,Length,AlertON,EmailON,3,clbar+1);Code: Select all
if (clnow>clpre) SendLong = true;
if (clnow<clpre) SendShort = true;What i want is only 1 trade per color.
I spend a lot of time on this, and i ask here if coders have an idea to stop the ea sending orders ?
Thanks !