How to Prevent Repainting the past?

 

Hi, Is it possible to prevent an indicator from repainting the past? I use the following indicator on a 15min chart but have found that sometimes the line changes color while still on the same bar. I would like to prevent this from happening. Any help appreciated.

Files:
test.mq4  2 kb
 

my friend it is fisher

 

it is change past alright..when you eliminated it signal will maybe still accurate

Reason: