New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stucking few SCTR #102
Comments
If you look at the help for
That is the default in the ta-lib C library, I believe. If you want to use a
It's basically an enum of integer values from 0 (SMA) to 8 (T3). Regarding the histogram, I'm not sure if that's exposed by ta-lib, but you could implement it yourself, something like this (not quite tested, so make sure it does what you expect): def PPO(c, fastperiod, slowperiod, signalperiod):
"""Percentage Price Oscillator"""
fast = EMA(c, fastperiod)
slow = EMA(c, slowperiod)
ppo = 100 * (fast - slow) / slow
signal = EMA(ppo, signalperiod)
histogram = ppo - signal
return ppo, signal, histogram SCTR sounds interested. I'd love to know if/when you get it working properly! |
P.S., you can see how ta-lib C library implements PPO. It's not quite easy to read, but: https://sourceforge.net/p/ta-lib/code/HEAD/tree/trunk/ta-lib/c/src/ta_func/ta_PPO.c |
I am getting values like : but it should be something like Stock Chart suggested. [ nan nan nan ..., -1.142 -2.484 -2.251] what i missed actually ? |
There must be some difference between how they are calculated... |
missing slopes of the histogram. |
Did anyone solved the calculation of SCTR already? |
i have few specific questions here :1
1: SCTR out put is ddifferent as expected.
2.is that PPO i had considered is based on EMA.how can i get the MA_Type?
3.how can i get the slope of PPO histogram ?
i am looking for a report in html/csv file which will display all SCTR for 51 stocks daily http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:sctr
The text was updated successfully, but these errors were encountered: