def _run(self): _emafast = _ema(self._volume, self._window_fast, self._fillna) _emaslow = _ema(self._volume, self._window_slow, self._fillna) self._pvo = ((_emafast - _emaslow) / _emaslow) * 100 self._pvo_signal = _ema(self._pvo, self._window_sign, self._fillna) self._pvo_hist = self._pvo - self._pvo_signal
def _run(self): fi_series = (self._close - self._close.shift(1)) * self._volume self._fi = _ema(fi_series, self._window, fillna=self._fillna)
def _run(self): _emafast = _ema(self._close, self._window_fast, self._fillna) _emaslow = _ema(self._close, self._window_slow, self._fillna) self._ppo = ((_emafast - _emaslow) / _emaslow) * 100 self._ppo_signal = _ema(self._ppo, self._window_sign, self._fillna) self._ppo_hist = self._ppo - self._ppo_signal