How can i draw fibo levels for all days in history

 
Dear All
This indicator paints fibonacci zones for the current day only. The zones extend only till the current bar.
I want the indicator to paint these zones for all days in history. 
Also, At day open, the indicator should paint the zones till the end of the day

Would someone let me know the code for these two modifications



Files:
Fib_SR.mq4  8 kb
 
acedubai: Would someone let me know the code for these two modifications

There are no codes for that. It's a complete rewrite, with a candle bar loop, and every function using the loop index.

Reason: