kylejusticemagnuson / pyti

Python library of various financial technical indicators
MIT License
646 stars 169 forks source link

Output range for ultimate oscillator #9

Closed delica1 closed 6 years ago

delica1 commented 6 years ago

Hello,

I'm struggling a bit here since the documentation is sparse - trying to use the ultimate oscillator but the values I get back are typically ranging anywhere up to ~200. This seems wrong to me, or am I misinterpreting the output?

I am using stock tick price for the oscillator like this:

low = dataframe['BidPrice'].groupby(pd.Grouper(freq='1Min')).min()
close = dataframe['AskPrice'].groupby(pd.Grouper(freq='1Min')).last()
uo = ultimate_oscillator(close,low)
plt.plot(uo)
plt.show()
kylejusticemagnuson commented 6 years ago

Hi delica1,

Thanks for reporting the issue, I'll take a look into it in the next day or so when I have time.

kylejusticemagnuson commented 6 years ago

Hi delica1,

I'm not seeing any issues with this indicator with the test data I have been using. Could you post the close and low data that you are using?

Thanks