Return default time frame

Forums ProRealTime English forum ProScreener support Return default time frame

  • This topic has 2 replies, 2 voices, and was last updated 1 year ago by avatarJayD.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #207886

    Am doing a screener where I want to change a parameter depending on the time frame. For example:

    if TIMEFRAME(default)=TIMEFRAME(daily) then
    x=5
    else
    x=1
    endif

    Is there a way to read (return) the default time frame?

    Thanks.

    #207896

    GetTimeframe does the job (https://www.prorealcode.com/documentation/gettimeframe/) , but NOT for screeners. It’s availbale for indicators and strategies only, so you’d have to compare the time from one bar to next one with some math.

     

    1 user thanked author for this post.
    #207916

    Thanks Roberto.

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

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