Show the highest/lowest price of the chart

Forums ProRealTime English forum ProRealTime platform support Show the highest/lowest price of the chart

  • This topic has 19 replies, 6 voices, and was last updated 7 months ago by avatarJS.
Viewing 15 posts - 1 through 15 (of 20 total)
  • #220519

    Hi,

    is there a way to show in PRT the highest and lowest price of the chart ? I’m attaching a screenshot from tradingview that shows want I want.

    thanks

    #220521

    of the day ?

    #220522

    nope. Of everything that is displayed on the screen. So if I move / zoom the chart, the highest/lowest might change. have a look to the screenshot, I think it is pretty self explanatory

    #220537

    No, any code CANNOT read what’s on your charts. It only knows OHLC, Date and Time.

    No input is available.

     

     

    #220543
    JS

    Hi,

    You can use the “BarIndex” to determine the high and the Low…

    1 user thanked author for this post.
    #220546

    Hi JS, that looks good. just one thing, where should I paste your code ?

    #220548
    JS

    Hi,

    Copy the code and save as an indicator in PRT, then add the indicator to the price… (top left of the graph)

    #220549

    looks like I forgot something somewhere, but what ? 🙂

     

    #220554
    JS

    Hi,

    Because you use 1k units with a timeframe of a week (28 years of history), the “High” and “Low” are far out of the picture (but they are there)… Try it with fewer number of units so that the values come into view…

    #220556

    You can use the “BarIndex” to determine the high and the Low…

    That would not be of the chart; it would be of the internal data the chart is fed with. benkunz asks for the viewport of the chart.
    As far as I know this is not possible (although I would be able to make some surrogate hence “almost right” thing).

    benkunz, maybe consider why you would want this. A high-low is the most normal thing to want. But not from a random chart-width (for number of bars). Please look below, at the purple lines. Have a special look at the vertical purple line. This is where the high-low calculation starts in my case. For this chart 25 bars (25 x 5 minutes in this case) ago.
    What you want would be far more sophisticated. It would require the knowledge of the first bar on the chart and the last bar on the chart (while you scroll towards history and back). I don’t think that is possible.

     

    #220560
    JS

    Hi @benkunz

    Then you better wait for the “almost right” solution from PeterSt…

    #220568

    Its a very usefull tool in option strategies.

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

    what other option do I have to make the labels always visible ? here, I zoom in/out or scroll back in time, then the labels disappear

    #220579

    Rightclick in the right-hand margin, then “configure this area” (bottom option) and then untick what you see at the mouse pointer.

    #220581

    How does the BarIndex variable work ?

    from what I read, it is supposed to count the number of candles on the chart. But when I zoom in the reduce the number of candles on my screen, the BarIndex still shows the same value. I added this to the indicator to follow the value of BarIndex :

    DrawText(BarIndex,BarIndex,xLow+100,SansSerif,Bold,16)Coloured(“Red”)

Viewing 15 posts - 1 through 15 (of 20 total)

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