Suttisak Boonla:
Check for zero before you divide. If it's zero you either don't do the division or set the zero to a very small number instead so the result will be "near" zero (eg 0.0000000001)
Hi everyone
I'm newbie for code.
I Try to coding iCustom but I have some problem.
my indicator get som zero divide error.
double x = (a+b)/a;
double y = a/b;
double z = x/y;
so please help me.
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
Hi everyone
I'm newbie for code.
I Try to coding iCustom but I have some problem.
my indicator get som zero divide error.
double x = (a+b)/a;
double y = a/b;
double z = x/y;
so please help me.