Hi,
A quick glance at the code reveals that the indicator will change it's values up to 12 bars after it is originally painted.
Do you want the arrows to just stay where they are once they are painted and not change again? Note that this will likely change all the arrows that you see painted in history.
I have been coding trading systems for over a decade, and mql4 for the past 7 years. Although relatively new here, I am most definitely qualified to do this job for you.
Thanks for considering me.
Cheers,
Shi Jun