Is it possible to code an EA that allows the user to enter the name and parameters of a custom indicator so that they can be passed to iCustom() ? I have tried to figure out a way to do this and I have hit the wall, how to get the parameters into iCustom without knowing how many there will be or what type.
yes I think messy is the operative word, I'm suprised this question has not been asked before if it has I couldnt find it. If I could pass the string it wouldnt be that bad, but of course iCustom requires the parameters to be of the correct type..
Is it possible to code an EA that allows the user to enter the name and parameters of a custom indicator so that they can be passed to iCustom() ? I have tried to figure out a way to do this and I have hit the wall, how to get the parameters into iCustom without knowing how many there will be or what type.
I faced this problem with my commercial stuff and the only fool-proof solution was - no parameters at all. I hardcode the parameters to indicator and save it with a reasonable name, that let me guess the hardcoded parameters.
I faced this problem with my commercial stuff and the only fool-proof solution was - no parameters at all. I hardcode the parameters to indicator and save it with a reasonable name, that lets me guess the hardcoded parameters.
Yes but if it is a commercial product and the user's have a custom indicator and not have access to the source code or they might not know how to hard code its parameters even if they did have the source code.
It's possible with mql5, but I don't know if it will be implemented in the new mql4. Currently (beta build 538), it's not.
Yes but if it is a commercial product and the user's have a custom indicator and not have access to the source code or they might not know how to hard code its parameters even if they did have the source code.
You may create a wrapper indicator which would be a proxy to the 'unfriendly' indicator.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is it possible to code an EA that allows the user to enter the name and parameters of a custom indicator so that they can be passed to iCustom() ? I have tried to figure out a way to do this and I have hit the wall, how to get the parameters into iCustom without knowing how many there will be or what type.