Simple indicator does not work. Any help greatly appreciated. Only 20 lines of code. I cannot find the error. Thanks

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Everyone.
I have tried to modify the indicator presented in the book.
All I want, is to show an arrow above every Monday, when used on the daily charts.
A very simple code, but it will not indicate anything.
Any help would be greatly appreciated. Many thanks.