Forums ProRealTime English forum ProOrder support Division By Zero Error: Solved Reply To: Division By Zero Error: Solved

#127267

@juanj you make a good point about out of hours and no data which could cause this error but the systems should be paused by IG during “market closed” times and we should not get this error due to a market being closed. I’ve had a few instances when a systems still tries to calculate even though the market is closed.

I’m having this error: Division By Zero Error

The strange thing is that it’s somewhat inconsistent. I have one instance of a system on Demo that is running without the error on h1 but on m1 I get the error.  In a live account on h1 I had this error occur and the system closed. It still might be due to an error in my code which I’m trying to find (and probably is the cause) but the inconsistency of running without error on h1 and error on m1 is what has me puzzled.