the valid() function is just a simple function to check if the value returned from iCustom is not EMPTY_VALUE and x > 0
Your code buy = valid(b11) && valid(b21) && valid(b31) ? true : false;
Simplified double buy = valid(b11) && valid(b21) && valid(b31);
- Lutfy Alamsyah: what is happening here? why MQL4 read wrong values?
How To Ask Questions The Smart Way. (2004)
Don't rush to claim that you have found a bug.
Questions Not To Ask
My program doesn't work. I think system facility X is broken.It is almost always your code.
William Roeder #:
Increase Order after stoploss - MQL4 programming forum #1.3 (2017)
Your code | |
Simplified |
thanks for the simplified suggestion,
and i just figure out that the problem is not from the ea nor the icustom, its from the indicator itself
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
below here is the code..
i hope someone can help me to figure this out as to why this is happening.. thank you in advance