Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Anil Varma:
Dear Fellows
I know this is very common error and lot of posts on the forum, which I have tried out.
My problem is somehow different in sense that it occurs only when running getRZS() method. In all other calls it does not return any error.
Guide me what could be potential cause.
Regards
Most probable cause is the instantiation of the indicator either hasn't been done or has failed.
I suggest to initialize the handle variable with INVALID_HANDLE and include a check to see if it was initialized before usage.
You can also check if the indicator returns some bars with BarsCalculated.
if the return is -1 no chance of escaping 4806
if the return is -1 no chance of escaping 4806
Dominik Egert #:
Most probable cause is the instantiation of the indicator either hasn't been done or has failed.
I suggest to initialize the handle variable with INVALID_HANDLE and include a check to see if it was initialized before usage.
Thanks Dominik
I will try your suggestion.
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
Dear Fellows
I know this is very common error and lot of posts on the forum, which I have tried out.
My problem is somehow different in sense that it occurs only when running getRZS() method. In all other calls it does not return any error.
Guide me what could be potential cause.
Regards