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
Metaeditor build 200
I think there is a problem when we call the iCustom function with a string parameter and when this parameter is an empty string ("").
In this case, Metatrader will not respond. I join 2 very simple programs to reproduce this problem. As these examples are very simple, Metatrader does not respond during 10 seconds, but in more complex indicator, it does not respond for much more.
To reproduce the bug, copy "A" an "B" programs in indicator section.
1) Display "A" (with default input parameters) in Metatrader. You will note that Metatrader is frozen during 10 seconds.
2) remove "A" from the chart and display it again but this time, fill the user parameter <e_input_data> (which is a string type) with something (what you want). In this case, Metatrader does not freeze.
The problem in 1) comes from the iCustom call that takes the <e_input_data> parameter which is an empty string (""). And I do not konw why, but iCustom does not like these empty strings...
Program "A.mq4" :
Program "B.mq4" :