Referencing the selected timeframe in code

Forums ProRealTime English forum ProBuilder support Referencing the selected timeframe in code

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

    I don’t think there is, but is there a way to reference the selected timeframe (default timeframe) so that it can be referred to in hard code?

    this isn’t logical code its to portray the logic.

    Hope that makes sense.. I did submit it to PRT as a suggestion…. Can’t see an obvious reference to it anywhere but still looking… Cheers

    #181629

    I’m currently coding variables for gettimeframe with different called indicators as a possible way around it, but haven’t finished that yet,think it may be feasible, just wondering if there is a snippet of code I don’t know about.. I’m optimistic about the called version

    #181767

    Ok, it wasn’t particualarly logical how PRT allows that to me but it’s sorted now, easy when you know how… reference the “named fields” in the call lines…

    #199323

    Hi. I’ve got exactly the same problem, but can’t figure out a solution. Any chance you could post a code snippet to show how you solved it. Thanks

    #199326

    This is an indicator to display the current TF on the chart. Its purpose is to show how to detect the current default TF:

    1 user thanked author for this post.
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