Is it possible to display highest high and lowest low of last 10 candles

Irrespective of time frame…is it possible to mark or display highest high and lowest low in previous 10 candles??after every candle formation 2nd candle should be considered the 1st and so on

Yes it is possible  for the Lowest Low value or Highest high value there is standard functions

Highest High value of last 10 candles

Example

HIGH = HHV(10)

Lowest Low value of last 10 candles

LOW = LLV(10)