Error 4808 on Custom Indi Module

Avatar
  • updated
  • Not a bug

It works perfectly in testing mode. But when I attach it to a demo account error 4808 occurs. (MT5 log at the bottom):

Image 4675

Any ideas?

Link to Indicator:

https://www.mql5.com/de/code/22218

How would you rate the customer service you received?

Satisfaction mark by Jan Corsair 1 year ago

Add a comment about quality of support you received (optional):

Pinned replies
Avatar
0
Andrey Khatimlianskyi
  • Answer
  • Not a bug

Okay.

I have studied this issue.
The problem is the large number of input parameters of the indicator. If I comment out most of them, the EA can successfully load it.

So the solution to the problem is to reduce the number of input parameters.
To do this, open the indicator file (HarmonicPatternFinderV3.mq5), then go to the file " HPFGlobals.mqh" and open it, and then delete the keyword 'input' before the unnecessary input parameters. Here you can also set default values for all input parameters.
Finally, go to the main indicator file and compile it.

Image 4695

I hope this helps.

Avatar
0
Quote from Jan Corsair

I removed "input" from the "color" parameters, I guess the other values are relevant.

Image 4697

I compiled it and now get this (when attached to account):

Image 4696

It is not enough, the number of parameters is still large.

Try to remove all 'input' words and then add them back section by section.

Avatar
0
Jan Corsair

2nd try: I removed "input" of more (40 "Display..." parameters)... same error as above.

Avatar
0
Quote from Jan Corsair

2nd try: I removed "input" of more (40 "Display..." parameters)... same error as above.

Try this file. Does it work for you?

HarmonicPatternFinderV3.ex5

Avatar
0
Quote from Andrey Khatimlianskyi

Try this file. Does it work for you?

HarmonicPatternFinderV3.ex5

https://charts.mql5.com/36/961/gbpusdm-h1-exness-technologies-ltd.png

Avatar
0
Jan Corsair

Okay I removed every "input" starting with line 129 to 227, now it works on the account. Tester results look good too (are the same). It allready opend a first position on a demo account.


Modification of input parameters was the key.

Thank you!


Will you update CP to support this large amount of inputs? Or maybe just ignore them if they are too many?

Avatar
0
Quote from Jan Corsair

Okay I removed every "input" starting with line 129 to 227, now it works on the account. Tester results look good too (are the same). It allready opend a first position on a demo account.


Modification of input parameters was the key.

Thank you!


Will you update CP to support this large amount of inputs? Or maybe just ignore them if they are too many?

This can't be fixed inside the EA. This is a bug/limitation of MT.

Avatar
0

Are you still not satisfied? ;)

Avatar
0
Jan Corsair

It works for me now. So I am. Very many thanks!

I am very thankfull for what you are doing for us and especially for making the Hamonic Patterns work now.

Avatar
1
Quote from Jan Corsair

It works for me now. So I am. Very many thanks!

I am very thankfull for what you are doing for us and especially for making the Hamonic Patterns work now.

So why haven't you changed your satisfaction mark in this thread? 🤔

You can try to ask MetaQuotes to fix this problem and allow to call indicators with more than 64 parameters. But they will ignore you for sure.

So I'm doing what I can do to change what I can change.

Avatar
1

Now I see, that you are ;)

Thanks for your bug-report and feedback!