MCPcopy Index your code
hub / github.com/QuantFans/quantdigger / Volume

Class Volume

quantdigger/kernel/indicators/common.py:154–163  ·  view source on GitHub ↗

柱状图。

Source from the content-addressed store, hash-verified

152 #raise NotImplementedError
153
154class 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

Callers 1

mplot_demo.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected