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

Method plot

quantdigger/kernel/indicators/common.py:142–149  ·  view source on GitHub ↗
(self, widget)

Source from the content-addressed store, hash-verified

140 return emaslow, emafast, emafast - emaslow
141
142 def plot(self, widget):
143 self.widget = widget
144 fillcolor = 'darkslategrey'
145 nema = 9
146 ema9 = MA(self.macd, nema, type='exponential').value
147 widget.plot(self.macd, color='black', lw=2)
148 widget.plot(self.ema9, color='blue', lw=1)
149 widget.fill_between(self.macd-ema9, 0, alpha=0.5, facecolor=fillcolor, edgecolor=fillcolor)
150
151 #def _qtplot(self, widget, fillcolor):
152 #raise NotImplementedError

Callers

nothing calls this directly

Calls 2

MAClass · 0.85
plotMethod · 0.45

Tested by

no test coverage detected