How to get highest and lowest price based on candle closure for specific time period
-
I know how to get the highest and lowest price in general for a specific time period :

However how do I get it based on candle body closures as the method used above includes the wicks which I do not need. Any help is appreciated!
-
-
@Yesthatguy sir for this cbdr_start and cbdr_end, what is the constant type to be used? kindly advise.
-
Those are int type variables, so that values 0,1,2,3... are used there.