Can someone please help me in making this indicator.

Hi friends

Can someone please code an indicator for me based on the formula given below….either for PI or Nest Plus

(Current bar ‘Low’ – Highest ‘Close’ in last 22 bars including the current one) / Highest ‘Close’ in last 22 bars including the current one) * 100

And some guide to install this will be highly appreciated

Thanks
Arup