Urgent PineScript Debugging and Cleaning - Trading view indicator

Job ID: 37999681

Budget: £20 – £250 GBP

I've a Pinescript that used to work well on TradingView but after a recent upgrade to version 5, it's malfunctioning. I need someone to urgently clean up the code and fix the bugs.

Key Responsibilities:
1. Thoroughly clean up the existing code.
2. Debug the script to ensure it works seamlessly on the current Pine Script version.

The ideal candidate should have:
- Profound expertise in Pinescript.
- Proven experience in debugging and cleaning up Pinescript.
- Familiarity with the changes in Pine Script versions.
- Ability to work under tight deadlines.

The code is in the attached file, it used to work on tradingview but it no longer works