(self, widget)
| 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 |