ernest02:
If you use all the default parameters ( externs ) then you do not need to specify any of them . . . if you need to change one or more you must specify all of them.
I am writing an EA that uses a custom indicator so i am using iCustom in the code.
The book gives the format as follows:
double iCustom( | string symbol, int timeframe, string name, ..., int mode, int shift) |
and says this about parameters (....,):
Now this indicator has 39 external parameters that can be set and I do not want to change any of them from the compiled version - iow use the parameters as is.
Do I still have to list the 39 parameters every time I use this indicator in the code or can I just set the mode and shift and leave out the parameters?
e.g. iCustom(NULL,0,"CustomIndicator",0,1)
Thanks RaptorUK! Good to see you back!
Ernest
ernest02:
Thanks, I've not been away though
Thanks RaptorUK! Good to see you back!
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
I am writing an EA that uses a custom indicator so i am using iCustom in the code.
The book gives the format as follows:
and says this about parameters (....,):
Parameters set (if necessary).
Now this indicator has 39 external parameters that can be set and I do not want to change any of them from the compiled version - iow use the parameters as is.
Do I still have to list the 39 parameters every time I use this indicator in the code or can I just set the mode and shift and leave out the parameters?
e.g. iCustom(NULL,0,"CustomIndicator",0,1)