Timeframe 28s and error division by 0

Forums ProRealTime English forum ProOrder support Timeframe 28s and error division by 0

Viewing 4 posts - 1 through 4 (of 4 total)
  • #133161

    I’m testing this code, taken from this forum. However running on IG demo sometimes it stop with an error regarding bar closing and division by “0”. Could you help me to solve it? Thank you very much.

     

    #133165

    Unless it’s the number [1] with WILLIAMS, I don’t really know what to tell you, I don’t think there are any calculations that can return 0 in an expression.

    Try using [2].

    #133166

    It may be due to no data for one or more bars under test?

    Anyway, I was involved in this strategy (I think or another 28 sec TF one) and 28 sec is not a good TF.  30 sec is much better!

    If you work it out … 28 sec, 56 sec, 84 sec etc on which you may have backtested and then you start a Forward Test on 11: 41 (for example because that is the time now! 🙂 then 28 sec later will be … oh you do the maths! But backtest likely is not at the same points of for example a 1 minute bar as for example 30 seconds is … 2 x 30 sec bars per minute.

    Best thing is you find the Topic where we had loads of discussion on 28 sec TF before maybe you spend a chunk of your life on it?? 😉

    1 user thanked author for this post.
    #133176

    Thank you very much, your updated and last EUR/USD strategy for TF 30s? 🙂

    Thanks.

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

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