Division zero error

Forums ProRealTime English forum ProOrder support Division zero error

Viewing 5 posts - 31 through 35 (of 35 total)
  • #212793

    Hmm alright, I will try

    StochRSI = (myRSI–MinRSI) / max(1,(MaxRSI–MinRSI))

    I will hold my thumbs for next trade

    #212819

    I am not sure but I belive the system is getting stopped and getting the error (division 0) when it is not even in the “trading hours”.

    I run this “time >130000 and time < 210000”

    And I tend to belive the system is getting stopped out of thoose hours but I am not 100% sure, but when I wake up in the morning the system has stopped so I tend to belive it is happening at night? Is that even possible?

    (Not sure if this StochRSI = (myRSI–MinRSI) / max(1,(MaxRSI–MinRSI)) fixed it yet will wait and see.

    #212822

    Is that even possible?

    Yes the code is read at end of every bar as that is only way to know about restrictions on hours etc.

    During the night is the time most liekly to get div0 Rejection because during the night / low liquidity is when there is more chance of missing bars – OCHL = 0 / no movement in price at all.

    1 user thanked author for this post.
    #212825

    Yeah true.

    Just want to be sure.. “division by zero” means what it is says right? x/y when x=0 does not give division 0 error right? Only y=0 right?

     

    #212826

    The Error Message does also say about negative values.

    I use IG error messages generally as a guide / hint to what has caused a Rejection rather than a strict 100% accurate statement of what the problem is.

    1 user thanked author for this post.
Viewing 5 posts - 31 through 35 (of 35 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login