PDA

View Full Version : Divide By Zero


tb2000
07-01-2008, 11:07 PM
I just realized that despite my indicator occasionally generating a divide by zero error there seems to be no warning - no log info - just silence...

I actually then went to force the error:
nRG1 = 0;
nRG1VolRatio = Volume[1] / nRG1;

Still no messages.

Am I missing something?

Thanks ahead!

tb

tb2000
07-01-2008, 11:18 PM
Oops, just realized the target result was a double - so the result is infinity...
I verified: NT is properly catching and logging divide by 0s, my fault!
tb

NinjaTrader_Josh
07-01-2008, 11:21 PM
Glad you got it worked out. Feel free to post any other questions as they arise.