Avoid Sunday evening...

 

Hi, I need an help in editing the attached indicator.

The indicator plots previous day High and Low levels. The problem is that if DayofWeek()==1, the indicator plots Sunday night levels.

I'd like that if it's Monday the indicator will look to Friday levels...


Thank you!

Files:
Reason: