how to calculate self.data-self.data for a linebuffer without crash
in init can I create a linebuffer with the change from the first to the previous tick?
I know how to do it in next:
But how to do this in init for the whole buffer?
so in next you would do something like:
diff = self.data - self.data[-1]
in init you would do:
self.closediff = self.data(0) - self.data(-1)