Range of the last 60 day

Forums ProRealTime English forum ProBuilder support Range of the last 60 day

Viewing 3 posts - 1 through 3 (of 3 total)
  • #19240

    Hello

    I´m searching for a indicator-code, that shows me the bigest range of the last 60 days. I want to create a histogram that shows the daily range and than there is a line, that shows the bigest range of the last 60 days. If the histogram crosses the line it is clear, that we have the bigest range of the last 60 days. How can I create such a highest-high-range-indicator?

    Thank for the help

    #19328

    Hi,

    You don’t mention what timeframe your indicator is for, but as you talk about days only, I am going to assume you want a daily timeframe display. In this case the following simple code will do the trick. However, should you want to display smaller timeframes (hourly, minutes, xticks views) then this code won’t do it because looking back 60 days would require knowing how mnay candles there is in the day and that depends on the chosen timeframe, so coding something that works for all timeframes is a bit more complicated.

    But again, if your need is just for daily timeframe, then this will do it:

     

    #19448

    Thanks a lot. This is what I´m searching for.

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