Buffers in Indicator
-
@fxDreema I tried loading a custom indicator and it gave this error. iCustom' Wrong Parameters Count. I take it's because it has too many settings? I've tried everything I could think of including importing it without adding Input Parameters and just the buffers.
-
Hi All
I have an Indicator that I was trying to work out what the Buffers did. I built a simple ea using a Pass & a Trace Block so the EA would put a line on the chart when that buffer was activated.
I compiled the indicator in Metaeditor & got no errors. I then compiled the EA & got seven errors all saying the same thing " 'iCustom' Wrong Parameters Count" . Line & Column are given where the error in the Code occurs and I can find the line but not the column. The EA symbol in the Navigator window also has a small diamond symbol in the corner which is normally gold whereas mine is gray. Is this a symptom of the problem?
I have attached a picture showing the EA symbol in the Navigator window, the Indicator and the EA in question.
Any help would be greatly appreciated.
Thanks
-
Nothing is wrong with the buffers. It appears that iCustom always gives error when the parameters of the indicator are 60 or more. It works with 59 or less, but once you reach 60 parameters it starts to fail. Or in other words, if all parameters in iCustom are more than 64, it fails. Note that this function does not contact with the actual indicators and it does not now how many parameters it really have.
Try this:
iCustom(NULL, 0, "MyIndicatorName", 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9, 0, 0);This compiles successfully, but put one more parameter anywahere and it fails.
-
By the way this also compiles without problems:
iCustom( 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4,5,6,7,8,9,0, 1,2,3,4 ); -
-
MT5 files are not accepted on fxDreema. Did you try to emulate all input parameters and buffers as explained in this tutorials:
https://fxdreema.com/forum/topic/4208/tutorial-06-my-indicators-in-fxdreema
https://fxdreema.com/forum/topic/9105/tutorial-working-with-ex4-ex5-indicator-file -
Hi @l'andorrà.
I've been using fxDreema for quite a while now and am busy slowly making Youtube tutorials on it.
I've come accross many strange problems using fxdreema and this one seems like a coding issue with this indicator.
It has so many settings it seems to have hit some sort of parameter limit which generates the error.
The one way I found to work around this is using on chart signals which means using the discriptions, colors and values that's on chart.
So far it's not doing too bad.
Tricky but it works.
https://fxdreema.com/shared/dg4hqZtkc
Still working on it but this should give an idea of how to use on chart signals. -
Hey, if it works, it works.
