Highest/Lowest price after defined time

Forums ProRealTime English forum ProOrder support Highest/Lowest price after defined time

Viewing 5 posts - 1 through 5 (of 5 total)
  • #114386

    Hi folks,

    I wonder if anyone can help. Ive been banging my head against my desk for hours trying to figure this one out…

    Instead of identifying the highest high or lowest low over a lookback period of given number of bars – e.g.

    I would like to quantify the highest high and lowest low after a defined time. For example, I’d like to quantify the highest high after 14:00 and before 19:00

    This quantity should continually update during this period but not reference price prior to 14:00. This is where the HIGHEST[10](High) is problematic because at 14:00 it is looking 10 bars back before the time reference point.

    Thanks in advance for any help

    #114389

    Try this (not tested):

    You can replace OpenTime with Time if you prefer the time when a candle closes rather than when it opens.

    Moreover, it will not work as expected if you use a TF that does not open/close a candle at that time (such as a 4-hour or 7-minute TF).

    1 user thanked author for this post.
    #114391

    Many thanks Roberto. Thats spot on!

    #114392

    Sorry for not adding LOWEST.

    I read your example and didn’t pay attention to your title:

     

    #114396

    Added as Log 188 here

    Snippet Link Library

     

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

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