Any dividing with Point (or other) in such cases (especially if it is on PERIOD_M1 chart) when often bars aresame price high and low, big % that script will be closed with zero_divide error.
rfb: Any dividing with Point (or other) in such cases (especially if it is on PERIOD_M1 chart) when often bars aresame price high and low, big % that script will be closed with zero_divide error.
double badaneh = (O-C)/Point;
False. Point is 0.01 (jpy 4 digit broker) to 0.00001 (non-jpy 5 digit). Point is not zero, can NOT result in a zero divide. Dividing by badaneh might.
WHRoeder:
False. ... can NOT result in a zero divide. Dividing by badaneh might.
True. Didn't give example, my explanation was short, sorry.
double open = 0.0 , close = 0.0 , checkzero = ( open - close ) / Point ; // -> == OKPrint ( " ( open - close ) / Point = " , checkzero ) ;
double fx = checkzero / ( open - close ) ; // this one results with mentioned zero-divide errorPrint ( " checkzero / ( open - close ) = " , fx ) ;
I wasn't detailed, but ... it is rare someone to stop there at first point of calculations without further calculations. (This is my case).
Anyway, thanks for correcting me, you were correct.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
<CODE REMOVED>
<CODE REMOVED>
I removed your code . . . .
Please edit your post above and re-insert your code using the SRC button . . . please use the SRC button to post code: How to use the SRC button.
To edit your post . . .
False. ... can NOT result in a zero divide. Dividing by badaneh might.
True. Didn't give example, my explanation was short, sorry.
I wasn't detailed, but ... it is rare someone to stop there at first point of calculations without further calculations. (This is my case).
Anyway, thanks for correcting me, you were correct.
Hi,
Anybody have the indicator for 50% body candle identification by color. (All time frames)
Regards,
Robert