Help to debug my pine editor version 5.0 script

Job ID: 36889350

Budget: $30 – $250 USD

I am looking for help debugging my pine editor V.5.0 script. Specifically, I am experiencing a logic error that I have already tried to debug myself. To be successful, I am hoping the freelancer can figure out an appropriate solution within 1-2 hours.
Related categories: Pine Script Trading