Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
recently i have the problem with couple of indicators ,they report 'zero divide'
but i am sure there is no division by zero.I checked history and all data is ok.
I tried with other cross then i get that indicator to work but other one reports 'zero divide'.
I suspect that my mt4 is corrupted or i have a virus.
Any one else have same problem ?I would like to avoid reinstallation...
thank you all for help,WCCI v2.1 work,no more 'zero divide' errors.
Fxsniper sidewinder overlay is ex4 so i can't fix it but i wonder how it worked before without problems and now it is giving this error ?
Dear Guru,
I have download the history (3 years) from Alpari and using its MT4 to test my EA. It works. I do the same thing for IBFX. It shows me the error "zero divide" The funny thing is if I change the period to the latest month (i.e. backtest 1 month only), it works again in IBFX. Anyone knows what happen? I believe it is something related to the history downloaded.
Zero divide error is exclusively a coding error. Metatrader does not provide a trap (or rather, that message is the trap, and since by definition divide by zero yields to undefined, they chose the terminate the code execution in such cases) for such errors, so if not dealt with within the code it will happen, sooner or later
Quote:
Originally Posted by footy98
Dear Guru,
I have download the history (3 years) from Alpari and using its MT4 to test my EA. It works. I do the same thing for IBFX. It shows me the error "zero divide" The funny thing is if I change the period to the latest month (i.e. backtest 1 month only), it works again in IBFX. Anyone knows what happen? I believe it is something related to the history downloaded.
Regards,
Happy Trading
Last edited by mladen; 09-18-2009 at 07:09 PM.
Reason: some more explanation
Hi, I have a problem with WCCI panel Heart v2. Indicator worked up until I tried it with another company operating Metatrader. How do you fix it?
Please help me, it's important for me.
Find in the code every occurrence of division and add before every division a zero condition checking
Something like this :
PHP Code:
if (divisor!=0) result = dividend/divisor; else result = 0; // or whatever result you prefer here since the result // of division by 0 by definition is undefined
about the "whatever result" : I prefer the 0 (since the result of division by 0 is undefined, 0 is one of the "valid" results) because it is neutral in the way that it does not assume the sign of the result (so one less assumption compared to +- whatever result)
Quote:
Originally Posted by quest
Hi, I have a problem with WCCI panel Heart v2. Indicator worked up until I tried it with another company operating Metatrader. How do you fix it?
Please help me, it's important for me.