EA operating Time
Well you can also use
TimeDayOfWeek();
Marco vd Heijden:
Thanks I'll have a pop at it
Well you can also use
RainyDay: It functions correctly on every day of the week...except for Mondays. Would anyone be able to explain why this is?
It shouldn't work at all because reset has a random value initially. Simplify your code:static int reset;
bool isTradingTime = NewDay <= Hour() && Hour() < CloseDay;
whroeder1:
It shouldn't work at all because reset has a random value initially. Simplify your code:
As always...thank you!
It shouldn't work at all because reset has a random value initially. Simplify your code:
Hi all,
I have a function that checks the time of day in my EA. It looks like this:
NewDay/CloseDay are external int variables, 0 and 2 respectively.
TradeTime is an external bool variable that allows trading to occur / not occur.
It functions correctly on every day of the week...except for Mondays.
Would anyone be able to explain why this is?
And anything I can do to overcome this and allow trading 5 days a week.
Any advice would be greatly appreciated!