division by zero error but im not dividing anything

Forums ProRealTime English forum ProOrder support division by zero error but im not dividing anything

Viewing 6 posts - 1 through 6 (of 6 total)
  • #189098

    Hi guys as the title suggests i keep getting the division by zero error but im not dividing anything. can anyone see an issue with the attached? i scratching my head. the code at the bottom is a custom indicator is this causing the issue?

    #189099

    Hi there,

    I should at least change line 85

    to

    You’d want that anyway and maybe it even helps. 🙂

    #189100

    The issue could be due to the indicator “trend/no trend”.

    Check any division in there.

     

    #189101
    JS

    Hi @Mishap

    t=(LinearRegressionSlope[AA](close)0)*SQRT(AA2)/(STE[AA](close)/STD[AA](Barindex))

    When BarIndex = 0 then STD[AA](BarIndex) is zero (devision by zero)

    Remarks:

    (Close)-0) ???

    Standarddeviation of the BarIndex???

    CumulateOrders is not deactivated because = true

    #189109

    Weird code, but ok 🙂

    The problem is located in your indicator, make sure you have sufficient history in order to calculate the standard deviation of the barindex (!??) 😆

    #189134

    lol thanks guys, i was trying something a little different 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

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