Nested loops problem

Forums ProRealTime English forum ProBuilder support Nested loops problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • #214510
    Seb

    Hello, I was trying to convert ZigZag from EasyLanguage to PRT, but PRT doesn’t like the nested loop. Any way around this or shall I give up?

     

    #214518

    Nested loops are often a problem for sure with performances of calculation. But I think that you can’t make a straight 1:1 code conversion in that case. The infinite loop problem might come from a wrong interpretation of how the loops are working in the original code with the own platform engine.

    As far as I understand that code, it calculates the “pivot” of the last 2 candles including the current one aka Fractals.

    There is a nice zigzag code here: https://www.prorealcode.com/prorealtime-indicators/zigzag-indicator/

    1 user thanked author for this post.
    avatar Seb
Viewing 2 posts - 1 through 2 (of 2 total)

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