interestin divergence formula

#1
Hello Everyone,

i wrote an indicator in metastok

Divergence(C,LinRegSlope(C,3),0.01)

but there is a problem with it.

the graphic is always changing when i load the update datas day by day.

ex: by using yesterday datas the indicator shows me -1
when i load todays datas indicator changes also yesterday value from -1 to 0 or 1

Would you pls share your comments about this problem
 
#2
its repainting and i cant avoid it.

linregslope is not repainting when its alone but when divergence with close it's not working
 

Similar threads