To begin with, we will extend the diagnosis - there maybe 5 or 6 reasons for failure. At the same time we will conduct a revision of the code, perhaps some error crept in
EventSetMillisceondTimer may fault by 100500 reasons. But not one of it cant`t resolvs in infinite loop.
Your should gain possiblities to system for free`s required resources (Timer handles) and reuse it In real apps algo. is much stronger, but your may use foolows template:
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
FYI, third reason: MT4 indicator, placed on chart, no problem. Loaded by iCustom, call fails, no error at iCustom.
Fourth reason. No more resource on the system (error 4024, I also had error 4030 sometimes).
From Stringo, MQ developer.
We will think.
To begin with, we will extend the diagnosis - there maybe 5 or 6 reasons for failure. At the same time we will conduct a revision of the code, perhaps some error crept in
EventSetMillisceondTimer may fault by 100500 reasons. But not one of it cant`t resolvs in infinite loop.
Your should gain possiblities to system for free`s required resources (Timer handles) and reuse it
In real apps algo. is much stronger, but your may use foolows template:
int OnInit() {
hasTimer=EventSetMilliseconndTimer();
}void OnTick() {
if (!hasTimer) hasTimer=EventSetM...
}
void OnChartEvent() {
if (!hasTimer)....
}