Forum

What actually triggers "Cannot set milisecond timer(n)" error and how to handle it?

It occurs when I call EventSetMillisecondTimer() and once it happens, the whole EA goes down. The only official documentation I found is this: https://docs.mql4.com/eventfunctions/eventsetmillisecondtimer. There's, however, no detailed description of a proper usage of this function nor how to handle

No documentation for "cannot refresh history [4073]"? How to properly handle this error?

I am using ChartOpen and then ChartApplyTemplate methods to execute an EA on a new chart from the current EA. Sometimes (about 5% of all cases and it seems completely random) this newly executed EA throws an " cannot refresh history [4073] " error when initializing . Once this happens, the strategy