help with gettimeframe and timeframe

Forums ProRealTime English forum ProBuilder support help with gettimeframe and timeframe

  • This topic has 5 replies, 3 voices, and was last updated 2 years ago by avatarJS.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #184786

    I am trying to code an indicator that returns the close of the higher timeframe, that is, if the chart is TF 1 minute it returns the close of TF 5min, if chart is in  TF 5 minutes it returns the close of TF 15min etc.

    This code seems ok to me but it doesnt work,  it just returns zero ! Any advise would be appreciated , thanks

     

     

    #184814
    JS

    I tried the following:

    timeframe(default)

    c = GetTimeFrame

    but whatever timeframe you use the result for c is always -1

    According to the documentation, “GetTimeFrame” only applies to “linear time units” but I don’t understand what is meant by that.

    #184819

    Yeah, I tried that also. It seems when you call gettimeframe from the default TF it always returns -1   , is  that a bug  ??

    #184820
    JS

    I guess so, it should return the default timeframe in seconds but always returns -1

     

    #184824

    Hi, it was a bug highlighted last november, as far as I know, it has been corrected for PRT trading with Interactive Broker, but fix not yet deployed for PRT with IG.

    1 user thanked author for this post.
    avatar JS
    #184828
    JS

    Hi @JC_Bywan

    I can’t find this bug in “Platform Support”, can you put it in?

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

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