MT5 getting empty results from optimization

 

Hi,


I've created an EA using eabuilder and tried backtesting & optimizating using MT5. However, I've noticed some passes are returning 0 trades and I've put it on the visual mode,
the custom indicator which the EA should be using is not showing on the chart and I get a lot of these errors "Not all data of prices calculated (1232 un-calculated bars )". 

I've also noticed that switching to different broker will have different sets of settings that I'm optimizing getting empty results. (for example, MA_Period 50, Smooth_Period 15 may work and give me optimization results on 1 broker and returns 0 result on other broker.)

Could any one help me out? Thanks!

Please see the attached code for the EA.


Files:
Reason: