Getting the open and close of the first 1 minute bar

AD²

AD²

New member
2019 Donor
Hi,

I am looking for a way to determine the value of the close of the first 1 minute bar.

Getting the open is fairly straight forward:

def openValue = open(period = AggregationPeriod.DAY);

Getting the Range of the first bar is fairly straightforward as well since we define a range (1 min) and return the high/low of that range.

But I can't figure out a good way for the close.

If anybody can help, I would really appreciate it.

Thanks!
 
AD²

AD²

New member
2019 Donor
Someone helped me figure it out, thanks anyways!
 

Similar threads

Top