EA should operate after Zero bar closes. Not on each tick.
Hi,
I'm not a programer so I hope I'm not misleading you.
What I would do is:
int MyBars=0;
.......
//**** Open (or close) position conditions *****
if (("your conditions"........) && MyBars<Bars )
{
ordersend (...........)
MyBars=Bars;
return(0);
}
** hope this helps you.....
regards.
Volume is unreliable, you can skip ticks. Bars in unreliable (once you reach max bars in chart it won't change.) Always use time:
Exactly.
There are a whole bunch of things that look fine in theory, but doesn't work as expected in practice.
Fortunately, Print() is your best friend in the MQL world.
Exactly.
There are a whole bunch of things that look fine in theory, but doesn't work as expected in practice.
Fortunately, Print() is your best friend in the MQL world.
Thanks gentlemen, for your support and help.
Have a nice week.
Volume is unreliable, you can skip ticks. Bars in unreliable (once you reach max bars in chart it won't change.) Always use time:
Hello again,
MetaTrader operates on the Tick. My EA should start analysing Trade signals when the Zero bar closes and becomes bar 1.
So it analyses only 1 time and not on each tick.
I'm wondering if there is a command that controls this situation.
Anybody has an idea ?
Thanks