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:

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!