Get first bar of the day low/high

Forums ProRealTime English forum ProBuilder support Get first bar of the day low/high

Viewing 2 posts - 1 through 2 (of 2 total)
  • #170816

    Hello,

    I am trying to get the first bar of the day high and low, and I want it excluding premarket, so the bar from 930.

    I want to have 5 minute and 15 minute charts.

    I tried using the DateToBarIndex but I cannot use string concatenation to turn the current date + 930.

    I tried using IntradayBarIndex which may work but I cannot find a way to determine how many to go back reliably.

    I could do a for loop and go back in time until I find a bar at 930 but I feel there must be an easier way.

    Anyone have any ideas?

    Thanks!

    #170817

    There you go:

    you may replace Time with OpenTime, if needed.

    You can use in on both the 5-minute and 15-minute TF’s.

     

Viewing 2 posts - 1 through 2 (of 2 total)

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