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 . . .
double badaneh = (O-C)/Point;
True. Didn't give example, my explanation was short, sorry.
double open = 0.0 , close = 0.0 , checkzero = ( open - close ) / Point ; // -> == OK
Print ( " ( open - close ) / Point = " , checkzero ) ;
double fx = checkzero / ( open - close ) ; // this one results with mentioned zero-divide error
Print ( " 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.