Anil Varma: I have included following check, but still in live chart I get error 4807 though none of handles return no error:
-
cVWMAM15 = CiVWMA_Tx(InpSymbol,PERIOD_M15,param);
You create an anonymous object including the internal handles. - You copy the internals to cVWMAM15
- The anonymous object is then destroyed.
CiVWMA_Tx::~CiVWMA_Tx() { IndicatorRelease(mHandleFast);
Your handles, including the copies, are now invalid.
William Roeder #:
- You create an anonymous object including the internal handles.
- You copy the internals to cVWMAM15
- The anonymous object is then destroyed. Your handles, including the copies, are now invalid.
Thanks for you reply. However I could not get what exactly you mean to say and what solution you have suggested. Can you please elaborate.
I have just tried using my old practice of creating pointer / new key word / delete object in the EA. With this it works without error 4807.
Regards

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 Fellow Members
The documentation says:
ERR_INDICATOR_WRONG_HANDLE
4807
Wrong indicator handle
I have included following check, but still in live chart I get error 4807 though none of handles return no error:
Result from EA run in live chart
Result from EA run in Strategy Tester
Necessary indicator, class and test EA is included herewith.
Please help me to debug what is causing this error.
Thanks in advance and best regards