@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!