Custom indicators return their values from indicator buffer(s) via iCustom function
call. See bottom of 'Features of Custom Indicators Creation'
Thank stingo. You save me a lot of time.
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
With the help from this forum, I was able to write a custom indicator that plot 3 traces. When I looked closely to the return argurment of the "int start()" function, I was amazed. How can the start function return "double" when the declaration indicated "int"? I am guessing that the function return a single value of the plot buffer(double). What happen if I have more than one plot buffers? Which buffer will be the return value? Can the function return other data types(int or string)?
Hope one of the forum "guru" can help.
Thanks