SOLUTION to ERROR 4805 error loading custom indicator on Multi-symbol

 

SOLUTION to ERROR 4805 error loading custom indicator on Multi-symbol 

If you have included custom indicators in your MT5 EA to the rule by looking at the documentation, like:

  • including custom indicator as a #resource,
  • Calling it via '::Indicator\\custom_indicator.ex5"
  • checking for INVALID_HANDLE in the OnInit() function
  • making sure indicator is not in subfolders of subfolders of subfolders
  • No extra-long path directories (by character length)

This is not a coding error. This is an error to do with your CPU and MT5 cache (temporary memory).

This is only a problem with the multi-symbol EAs; old CPUs, old chipsets, Computers with less than 4GB Ram.

This problem is easily solved, once solved you won't have a problem as cache will remember correctly.


This can happen in the Strategy Tester Or when loading on a chart for Live trading.

Both have different Solutions.


MT5 Strategy Tester Solution 

------------------------------------------------

- Close down all programs running on your Operating System (or restart your PC).

Restart your MT5 terminal. Make sure your data goes far enough back for the symbols

and custom dates you have chosen.  View > Symbols > Bars,

to see you historic data.


MT5 Live Trading Solution (when putting EA on a Live chart) 

----------------------------------------------------------------

Restart your PC/Laptop. Open MT5 Terminal, no other programs. MT5 will open with the last settings 

you closed with and we want a new cache (temp memory) .

So File > Profiles > Save As..> name your new profile > close all charts > open a new chart, just 1.

Drag & Drop EA onto the chart M5 (or H1 for conservative set files), 

there should only be 1 chart open> Load SET Files> OK

Now do this for other charts you want to add and remember to add unique Magic Number to the new EA.


Now you have loaded all your EAs with No 4805 Errors. Restart your MT5 terminal and you will see it will

ALWAYS load your EAs with no problems, that is because the profiles cache (temp memory) is set correctly !!!.




 
Philip Kym Sang Nelson:
SOLUTION to ERROR 4805 error loading custom indicator on Multi-symbol
Look at this post (the user described about how he fixed this error) and this discussion thread:
MQL5 error [4805] - Error applying an indicator to chart
Error 4805 : Does it trade or not ?
Error 4805 : Does it trade or not ?
  • 2014.09.03
  • Icham Aidibe
  • www.mql5.com
It deserves a topic. Error 4805 not described enough. An EA with Money Flow Index, gives this error...