Forums ProRealTime English forum ProOrder support Division by zero error Reply To: Division by zero error

#74947

I will check out your code later today when I continue to program.

To answer your first question why I multiplied by ten it was because of Nicolas answer earlier in this thread, I dont know if he’s wrong, here’s his answer:

“Only do division if the divisor variable is superior to 0, it usually avoid this kind of error”.

So he’s not talking about the result, but the divisor.

And about my last piece of code I described why I did it. Just to prove that the divisions works fine even if the results are zero something if you use them the next candle instead of the current one, so the problem is that PRT doesn’t do anything until the very end of each candle. Is there a way to contact the developers directly regarding this?