So maybe your problem is from your new MT4:
- 2019.08.17
- www.mql5.com
-
if(iCustom(NULL, 0, "GbbiDouble3.0", true, 0, 0, 0, 0, 0, 0, 0, 0, 0) //GbbiDouble3.0 is not equal to fixed value
Why are you setting all bars to the same value? - Does your indicator actually return zero? If not, your double to bool conversion is bogus.
- Without seeing the indicator, we can only guess if the call is correct.
You should encapsulate your iCustom calls to make your code self-documenting.
Detailed explanation of iCustom - MQL4 programming forum
@Mehrad Jeddi, thanks for your idea...
i just checked, and i have the 1170 build; i don't know if this is the problem, because i don't get any error message, but the mt4 just crashes.
do you have any other idea?
tnks,
rob
So in this case i dont have any idea,because we dont know return value of the custom indicator,
By syntax everything seems correct.
So if you want to get other bar buffer value,you should set "i" loop variable as the icustom shift bar.
//Indicator Buffer 1 if(iCustom(NULL, 0, "GbbiDouble3.0", true, 0, 0, 0, 0, 0, 0, 0, 0, 0) //GbbiDouble3.0 is not equal to fixed value ) { //What do you have here????????? } else { Buffer1[i] = 0; }
Are you showing the complete code?
Are you showing the complete code?
hi,
yes, it is the complete code
hi,
yes, it is the complete code
Then I can see nothing that will crash the terminal. Maybe you should look at what other indicators/EAs you have running.
Hi mladen, what is wrong with those parameters?
I just followed the instructions Of the iCustom function founded on this website...
please if you could clarify, it would be really helpful..
Thanks
rob
Apart from a fact that I have never saw an indicator expecting all zeroes (0) as parameter inputs (placing 0 does not mean to use default for the parameter, but to use 0), check this part of that description in the documentation _ https://www.mql5.com/en/docs/indicators/icustom:
[in] input-parameters of a custom indicator, separated by commas. Type and order of parameters must match. If there is no parameters specified, then default values will be used.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi
i'm going crazy, so i'm asking for your help.. maybe i need some fresh eyes..
i'm tryng to create a custom indicator, based on a MT4 indicator -already on my Indicators folder- but when i select it when my metatrader is running, the sistem crahes and i need to restart it.
i'm leaving here the mql4 code, maybe you can see some errors that i can't see...
thanks a lot for your help,
Rob