Right now, I got a similar problem with my EA. Whatever settings I test the cloud produces zero results with no trades, but the passes tested on my machine create results.
I fiddled around in the code and reduced the issue to the OnInit handler call of the custom indicators:
First version (original) - works fine in cloud:
asHandle = iCustom(Symbol(), 0, "AbsoluteStrength_v2", PERIOD_CURRENT, as2_MathMethod, as2_ApplyTo, as2_EvaluaionPeriod, as2_PreSmoothingPeriod, as2_SmoothingPeriod, as2_SignalLinePeriod, as2_MAMode, as2_LevelsMode, as2_StrengthLevel, as2_WeaknessLevel, as2_LookBackPeriod, as2_UBandMultiplier, as2_LBandMultiplier);
Then I said to use the indicator from resources of EA, works fine in cloud:
asHandle = iCustom(Symbol(), 0, "::Indicators\\AbsoluteStrength_v2", PERIOD_CURRENT, as2_MathMethod, as2_ApplyTo, as2_EvaluaionPeriod, as2_PreSmoothingPeriod, as2_SmoothingPeriod, as2_SignalLinePeriod, as2_MAMode, as2_LevelsMode, as2_StrengthLevel, as2_WeaknessLevel, as2_LookBackPeriod, as2_UBandMultiplier, as2_LBandMultiplier);
Then, to improve performance I said to only use the indicator when the user uses the signal - suddenly zero results in cloud, still works on my PC:
(if entrySignal==AbsoluteStrength) asHandle = iCustom(Symbol(), 0, "::Indicators\\AbsoluteStrength_v2", PERIOD_CURRENT, as2_MathMethod, as2_ApplyTo, as2_EvaluaionPeriod, as2_PreSmoothingPeriod, as2_SmoothingPeriod, as2_SignalLinePeriod, as2_MAMode, as2_LevelsMode, as2_StrengthLevel, as2_WeaknessLevel, as2_LookBackPeriod, as2_UBandMultiplier, as2_LBandMultiplier);
NOW comes the fun part, I then went back to version two, taking away the if function, but the cloud still refused to create results. Then I went back to original version and the cloud still refused to trade, while it all worked fine on my machine. Something strange is going on.
Okay, I really don't knoq what's going on here. Now I can't get it back to work. Whatever version I chose, even older ones that worked fine back in the days doesnt work in the cloud anymore, but only on my PC.
Please note: This issue is present for me since one week or so. I first thought it was a problem in my code (that haven't changed since this started to happen) and I tried to figure it out, but now that even older versions don't work anymore, I highly believe that it's an issue with MT5 or the cloud service. But it's strange that other EAs work, and that my EA worked in the beginning, but dont work now anymore and that they still work on my machine but not in the cloud.

- cloud.mql5.com
I am in contact with the seller. But since it works on my machines I think it's not up to the seller.
There was a bug in the previous build of MT5 (868) which made it impossible to backtest at all, build 871 fixed at least the local backtest. The error messages in that case were
QL 0 17:09:17 Core 1 2013.10.21 00:00:00 Alert: Error Creating Handles for indicators xzy. error: 4802!! Restart your EA again. KP 0 17:09:17 Core 1 2013.10.21 00:00:00 Alert: Error Copying indicator buffer xzy. error: 4807!! EA won't trade this tick or bar. GS 0 17:09:17 Core 1 2013.10.21 00:00:20 Alert: Error Copying indicator buffer xzy. error: 4807!! EA won't trade this tick or bar. KE 0 17:09:17 Core 1 2013.10.21 00:00:40 Alert: Error Copying indicator buffer xzy. error: 4807!! EA won't trade this tick or bar.
When connecting to the MQL servers I get the message "MQL5 Cloud Europe 2 authorized (server build 871)" which is the most recent version without the bug. It's possibly related to the cloud machines and their versions but thats something I cant find out by myself. The weird thing is that there is no error message at all. If you start a long running test without having a peed into the logfiles you will get a lot of trash as result and even charged for this...

- cloud.mql5.com
I am in contact with the seller. But since it works on my machines I think it's not up to the seller.....
I tested around some more and now finally figured the cause of the problem in my EA at least.
All the EAs I tested and worked in the cloud did not use special indicators put into the resources of the EA. I build some simple testing EAs with standard and custom indicators, but calling them normally from the folder.
But as soon as I call them from resources it suddenly failed to do calculations in the cloud.
So in my case it comes down to this critical part:
"::Indicators\\AbsoluteStrength_v2"
If I do it normally it works fine, if I call it from resources, calculations in cloud fails.
Unfortunately this call is critical for selling in the market and for users to test the products.
Ok, I can confirm it now, I build another simple test EA using a custom indicator and calling this indicator from EAs resources.
adding to resources:
#resource "\\Indicators\\iTC_iMA.ex5"
calling:
ima_handle=iCustom(Symbol(),Period(),"::Indicators\\iTC_iMA",iMA_shift,iMA_method,iMA_price); if (ima_handle<0) { Alert("Error Creating Handles for ima_indicator - error: ",GetLastError(),"!!"); return(INIT_FAILED); }
The cloud does not pass OnInit, while my PC does.
When I call the indicator normally from the folder it all works fine.
This must be a bug in MT5 (likely) or they changed the way custom indicators are put into/called from resources without telling the developers (very unlikely).
I am in contact with the seller. But since it works on my machines I think it's not up to the seller.
There was a bug in the previous build of MT5 (868) which made it impossible to backtest at all, build 871 fixed at least the local backtest. The error messages in that case were
When connecting to the MQL servers I get the message "MQL5 Cloud Europe 2 authorized (server build 871)" which is the most recent version without the bug. It's possibly related to the cloud machines and their versions but thats something I cant find out by myself. The weird thing is that there is no error message at all. If you start a long running test without having a peed into the logfiles you will get a lot of trash as result and even charged for this...
Ok, I can confirm it now, I build another simple test EA using a custom indicator and calling this indicator from EAs resources.
adding to resources:
calling:
The cloud does not pass OnInit, while my PC does.
When I call the indicator normally from the folder it all works fine.
This must be a bug in MT5 (likely) or they changed the way custom indicators are put into/called from resources without telling the developers (very unlikely).
Maybe you can try to use something like below to see if it's a problem with the build as crowstone suggested.
if(TerminalInfoInteger(TERMINAL_BUILD)<871) return(INIT_FAILED);
This is why I am asking about the seller, is it that he has the same problem? If it's a bug in MT5/Cloud, it have to be reproducible.
In my case it is reproducable. Even very easy as it seem that I have found the cause of the problem.
Maybe you can try to use something like below to see if it's a problem with the build as crowstone suggested.
Ok I will try that.
However, that would imply that every provider I get connected with has not yet updated it's build because all passes fail. Which is pretty unlikely.
UPDATE: Okay, I took four tests, conclusion:
Test decription | Result |
---|---|
|
|
|
|
|
|
|
|
CONCLUSION | The builds of the cloud agents are fine e.g. all agents seem to have updated their clients, however it's still the calling of the indicator that is causing trouble! |

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
since I don't get any reply from service desk I hope to find a solution (or explanation) here:
I'm trying to backtest a market EA, 3 months, tick, genetic. To speed this up I tried to use the cloud but dont have any success. Either my MT5 installation only connects (successfully) and disconnects (for whatever reason...) and thats it.
If I'm able to initiate a cloud backtest it replies only "returned result 5000.00" values, each process takes 6-8 seconds:
If I run it on my local machines each process takes 250-500 seconds but returns valid values:
Of course I get charged for that useless results.
I tried both, the demo and the paid EA from the market, different days, daytimes, broker, all results were the same.
Any hints would be appreciated,
thanks!