Can someone fix this?

 

Hello

could some one fix this?

I found this indicator in Perky's scalping thread, this indicator is lsma applied to a Williams 20%, this a good indicator but it needs a small fix, I think that as images are self explanatory.

Thanks in advance.

Files:
fix.png  65 kb
 

Actually there should be yellow color only when the current value and the previous value are the same. Attaching one version that is avoiding the repainting issue (since that is a classical repainting issue)

Demos6:
Hello

could some one fix this?

I found this indicator in Perky's scalping thread, this indicator is lsma applied to a Williams 20%, this a good indicator but it needs a small fix, I think that as images are self explanatory.

Thanks in advance.

Files:
 

Thank you mladen for your work.

Reason: