柱状图。
| 152 | #raise NotImplementedError |
| 153 | |
| 154 | class Volume(IndicatorBase): |
| 155 | """ 柱状图。 """ |
| 156 | @create_attributes |
| 157 | def __init__(self, tracker, open, close, volume, name='volume', colorup='r', colordown='b', width=1): |
| 158 | super(Volume, self).__init__(tracker, name) |
| 159 | self.value = transform2ndarray(volume) |
| 160 | |
| 161 | def plot(self, widget): |
| 162 | finance.volume_overlay(widget, self.open, self.close, self.volume, |
| 163 | self.colorup, self.colordown, self.width) |
| 164 |