We can use last() and first().
Get Maximum , Minimum , High of first bar and low of Last from Esper Query
-
27-06-2022 - |
Question
I am new with Esper which is Javas Complex Event Processing framework. Currently i am using the following query:
select
min(low) as minLow,max(high) as maxHigh
from
Bar.win:time_batch(180 sec);
I also want to get the high of first Bar and Low of Last bar in 180 sec window. Any Idea how can i achieve that?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow