timeframe instruction inside an if block

Forums ProRealTime English forum ProOrder support timeframe instruction inside an if block

Viewing 5 posts - 1 through 5 (of 5 total)
  • #147300

     

    I’d like to use the timeframe(n) instruction inside an if  block, like the code below but it throws an error:

    Is there any workaround ?

    Thx

     

    #147306

    It’s not allowed.

    TIMEFRAME must be used outside IF…ENDIF as well as outside iterations and the number and type of units (minute, hours,….) CANNOT be a variable.

     

    #147323

    OK ,  there’s an easy workaround:

     

    1 user thanked author for this post.
    avatar Maa
    #147332

    Correct!

    1 user thanked author for this post.
    avatar Maa
    #147340

    Link to above logged as 254 here …

    Snippet Link Library

     

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

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