Rolling fibs

 
Hello! Hope you're doing well. Got a request for an indicator and would appreciate your assistance. I am basically looking to make an indicator that would calculate fibs on a regular basis but only going back for a certain period. Precisely, I am looking to plot fibonacci retracement on a 4 hour chart but only for the past 30 days. This will change every day in sense that it will plot fib retracement for the past 30 days only.

Lets take an examples. On a 4-hour chart going back 30 days, the high is 1.5971 and low is 1.5303. So 50% fib is at 1.5640, 87.5 is at 1.589 and 12.5 is at 1.539.

Please advise if this is possible. Many thanks!

Regards,

Raheem
Reason: