Hi,
Im looking for an efficient way to easily grab the exacttimestamps associated with the highs and the lows within a OHLC (open, high,low, close) aggregation via xbar
For example:
select open_timestamp: first time, open:first price,high:max price, low:min price, close:last price, last_timestamp: last time by0D00:10:00.000000000 xbar time from trade where sym=XXXXXX, exg=
XXXXXX
As shown above, its easy enough to grab the times of thefirst and the last values (open_timestamp and last_timestamp), but indexing inand getting the timestamp for the max and min values is less straight forward..
I came up with messy and verbose way to do this, butIm sure there is a better way to do this .. via search & comparison (?) orsimilar which is eluding me at the moment.
Any ideas?
Thanks,
Bill