Once a day does not execute
-
Hey I made an EA that triggers 1 trade a day at 1 certain time. I have made one and backtested it and then it worked fine. But now I let the EA run on a "live" demo account so real time but the EA does not trade. Does anybody know what I do wrong?
-
@bertkuiper Di you backtested it throroughly?
-
the one I shared is not the real EA because I made the shared EA as simple as can be to test if the time filter works.
-
@bertkuiper you have restricted the EA to one allowed minute. If there are no ticks (price updates) during that particular minute, the EA loses its chance to trade and has to wait for tomorrow. I'm not sure this is the root of your problem, though
-
@roar yes I know that, but I have tried it on MT5 on SP500 and EUR/USD with plenty of ticks in that minute

-
@bertkuiper all right, then I'd suggest trying a different group mode, although I can't think of a reason the default option wouldnt work...

-
If that doesnt work, I guess the "certain hour" filter is bugged and you have to use some other time filter.
-
@roar thanks for your suggestion but that also doesn't work. I find it also very strange because running it through backtest just works fine.
-
@roar I tried different time filters already but none seems to work
-
@bertkuiper I tested your EA with current time and got the trade, no problem...

Check these buttons:

-
@roar thats even more weird that you dont have a problem, I have those buttons checked. I tried at another pc with freshly installed mt5 on it but also no trade
-
@bertkuiper does it trade when you disable the "certain hour" filter, just "once a day"? Does your broker allow automated trading?
-
@roar I found the problem, I had a demo account at MT5 it self and that was the problem, it did not work on that. Then I installed MT5 on a different computer with a other broker account and that did not work in the first place. But it seems that that broker has a different time on his server and when I changed 'Server time' to 'local time' it did work (also server time would work but I have to chance the time in the EA accordingly)
Thanks a lot for your trouble!