(self)
| 102 | |
| 103 | # Update all computed values |
| 104 | def update(self): |
| 105 | self.price = round(self.interpolate(1),2) |
| 106 | self.volume = int(self.interpolate(-1)) |
| 107 | if self.price < self.low: |
| 108 | self.low = self.price |
| 109 | if self.price >= self.high: |
| 110 | self.high = self.price |
| 111 | self.change = self.price - self.initial |
| 112 | |
| 113 | # Increment the time by a delta |
| 114 | def incr(self,dt): |
no test coverage detected