Well, it seems that TimeCurrent() is not updated quickly enough
Could this be a workaround?
static bool first_ticks=true;
static datetime TC=TimeCurrent();
It should mean that when you start the terminal it will wait for the time to update. If this doen;t work, then I don't expect to have any further suggestions.
Ok so it didn't give any of the previous days results which is good! But I can't test conclusively as there we no alerts produced today. But id does seem to be working, I will know for sure on Tuesday!
No I lie!
It now doesn't show the previous days alerts as well as today's alerts, but I need to open the client twice to get all of todays alerts.
So the first time I open the client, I will get 1 alert. Then when I close and open it again, I get the original correct alert plus the rest of the alerts for the day.
To add comments, please log in or register