Disliked
Does anyone in this community have a universal Expert Advisor (EA) for MT5? All the ones I've seen are for MT4. Thanks in advance.
I have seen some commercial ones.
The problem with this type of EA for MT5 is that in order to have a universal indicator EA, we need to use iCustom().
And in MQL5 we need to create a handle in OnInit() and then do CopyBuffer() in OnCalculate().
Inserted Code
int handle = iCustom(symbol, TF, "Indicator_Name", ...);
CopyBuffer(handle, buffer, start_index, whole_array, storing_array);
This method is highly unreliable and often returns Failed to copy rates data, error: 4401.
This error can also be at the level of the indicator, itself.
In MT4, the iCustom() is done in a different way.
Attached Image (click to enlarge)
That's why it is always much better for MT5 to create a specific EA with the specific indicator coded directly in the EA, and not by importing data.
.ex4/.ex5 files cannot be fixed or converted, or modified