this indicator have problem , can help me ?

 

hello 

i use this indicator , when i attach it on chart give me Specific information , and if i leave it work after attach for hours , days , weeks give me too Specific information
if i remove indicator and attach it from new , give me Specific information different about past hours , days and weeks last give me
So , i found must refresh indicator until give me usual Right information 
but i cant how do that or fix wrong indicator for that 

So can any one tell me what i do ? or what code put it ? or fix it ? or any solution ?

thank you




Files:
 
Naguisa Unada:

This is the repainting indicator that I wrote.

You need to modify the "else" line on line 78 as follows.

You should write to me directly because there is a URL with it.

thank you 
i think owner it will be not respond :) until that i dont contact by link url .

but thank you 

 
i put your edit code in line 78
but when i try test it by backtest mt5 , its dont work ?
and when i attach it its dont move
but before edit its move but not give me information like if refresh indicator
So , what problem or what solution ?
thank you