Division zero error

Viewing 5 posts - 31 through 35 (of 35 total)
  • Author
    Posts
  • #212793 quote
    deleted23092025
    Participant
    New

    Hmm alright, I will try

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

    I will hold my thumbs for next trade

    #212819 quote
    deleted23092025
    Participant
    New

    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 quote
    GraHal
    Participant
    Master

    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.

    thanked this post
    #212825 quote
    deleted23092025
    Participant
    New

    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 quote
    GraHal
    Participant
    Master

    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.

    thanked this post
Viewing 5 posts - 31 through 35 (of 35 total)
  • You must be logged in to reply to this topic.

Division zero error


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 34 replies,
has 4 voices, and was last updated by GraHal
2 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/28/2023
Status: Active
Attachments: No files
Logo Logo
Loading...