Using Both Text and Lines

Forums ProRealTime English forum ProBuilder support Using Both Text and Lines

Viewing 2 posts - 16 through 17 (of 17 total)
  • #195366

    Hi Roberto,

     

    I better explain what I am trying to achieve. Using a code that shows me higher time frame bars, I would like to display a text showing me the time frame of those bars..

    I found the way to display the text but it is static (I write here). I would like this text to be variable, depending on what time frame I am using so the text is updated automatically.

    for example

    ******

    if timeframe(6 minutes, updateonclose) then

    DEFPARAM DrawOnlastBarOnly = true
    Rge = averagetruerange[2](close)
    ShiftText = 1
    DRAWTEXT(“6 min”, BarIndex,High+Rge/0.4 / ShiftText / 1,SansSerif,Standard,18) COLOURED(20,150,150,255)
    RETURN

    *****

    and so that if I change the time frame parameters to 10 minutes for example, the resulting text will be 10 min. Is there a way to do this?

    #195553

    Add this ON your chart:

     

Viewing 2 posts - 16 through 17 (of 17 total)

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