Code with infinite loop

Forums ProRealTime English forum ProBuilder support Code with infinite loop

Viewing 8 posts - 1 through 8 (of 8 total)
  • #205030

    Hello all,

    I created an indicator that works well till 85 tick, but when i decrease tick under 85 the sistem show me infinite cicle.

    Could anyone help me to understand where is the problem?

    Here the block code that cause error:

    for i=1 to nBarre-1 do
    if price=price[i] then
    volprice=volprice[i]+volprice
    endif
    next

     

    Thanks a lot

    #205038

    I moved it from the Italian forum.

    Please choose the correct language and forum, please.

    Thank you 🙂

     

    #205056

    What is the value of “nBarre” please?

    #205058

    Hi Nicolas, below the entire code, anyway nBarre is intradaybarindex
    Thanks

     

    for i=1 to nBarre-1 do
    if price=price[i] then
    volprice=volprice[i]+volprice
    endif
    next

    #205068

    Are you using version prior to v11.1? “price” is now a reserved keyword. How many units do you displayed? The code is working fine for me on a 20 ticks timeframes.

    #205070

    I’m using T3 version, I don’t know what but is old.
    Regarding the unit the code crashing below 84 tick of dax.

    #205100

    T3 is based upon PRT version from 2009 and it is not supported anymore. I’m sorry I dont think I can do anything about your issue. The platform core and language had considerably evolved since then!

    #205127

    Ok Nicolas. thanks again

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

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