EA runs consecutively during week, stop after hitting weekend
-
Hi,
I have my EA resetting variables at 2 different times once at 16:30, on the day after trading and then the last variables resets the next day at 8:00 before trading for that day.
This all works fine starting on Monday and trades through Friday, but after the weekend, it did not take any trades, Monday, Tuesday, and Wednesday, this week.
Any Ideas why this might be happening, I am wondering if it has to do with the fact that the 8:00 time period after Friday trading does not exist on Saturday. Could this be the problem? Does the EA just stop since there is no 8:00 on Saturday?
All of this works fine when I backtest it for a whole year, but then live it trades until the weekend then does not restart.
Thanks for any help
-
That depends on how your variables are reset. Could you please share the link to your project?
-
Hi, thanks for the response. Here is a link to how I reset the variable and to how I take the buy and sell:
https://fxdreema.com/shared/FUfxWzwAc
Thanks for your help on this
-
You logic is correct. This should work. I guess this is not the whole project, right? Are you sure there is no conflict with other parts of the structure? Additionally, I always recommend to use a 'comment' block used to visualize the value of those variables at 08:00 and 18:00 just to confirm they are correctly changed.
-
Thanks for the response. Yeah that’s just the variable parts. It’s just odd that it works in back testing and during the week when love but does not restart after the weekend.
Do you know of a way to check the variables on MT5 for the live forward testing to see what they are on Friday?
-
Yes, you should use a 'comment' block to visualize the variables' values 24/7, as I suggested.