コード例 #1
0
ファイル: trend.py プロジェクト: silvercondor/ta
 def test_psar_up_indicator(self):
     target = 'psar_up_ind'
     result = psar_up_indicator(high=self._df['High'], low=self._df['Low'],
                                close=self._df['Close'])
     pd.testing.assert_series_equal(self._df[target].tail(), result.tail(), check_names=False)
コード例 #2
0
 def test_psar_up_indicator2(self):
     target = 'psar_up_ind'
     result = psar_up_indicator(**self._params)
     pd.testing.assert_series_equal(self._df[target].tail(),
                                    result.tail(),
                                    check_names=False)