problem of refresh indicator on screen

 

when a new candle occur, my personnal indicator don't update to new value, it seems NULL

so i have to click an other Interval unit to refresh the indicator


attachement my KST-CT

(on the screen, there is TWO KST CT and MT, but MT is similar code, except constant)


what is wrong in my code


best regards

Files:
kstdct.mq4  6 kb
Reason: