Check the expert journal and always print the error code like so:
if(DoubleHistoHandle==INVALID_HANDLE) Comment(" Failed to get handle of Double Market Convergence, error: ",_LastError);

OOP in MQL5 by Example: Processing Warning and Error Codes
- www.mql5.com
Before we start developing, let's get acquainted with some features of the OOP, which will be used in this article. Of course, we will use structures and classes. These are the basics of object oriented languages. A structure is a construction that allows containing a set of variables and functions of different types (except void). A class as...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I am trying put my custom indicator on my strategy but handle aways return -1. Please, i need help.
What wrong above??? I am new in MQL5 programming.
Strategy and indicator are same path.
I try using iDoubleMarketConvergence.ex5 and iDoubleMarketConvergence...
tks
Valdir Batista