> 函數名:CCI
名稱:順勢指標
簡介:CCI指標專門測量股價是否已超出常態分布范圍
#### 指標應用
* 1.當CCI指標曲線在+100線~-100線的常態區間里運行時,CCI指標參考意義不大,可以用KDJ等其它技術指標進行研判。
* 2.當CCI指標曲線從上向下突破+100線而重新進入常態區間時,表明市場價格的上漲階段可能結束,將進入一個比較長時間的震蕩整理階段,應及時平多做空。
* 3.當CCI指標曲線從上向下突破-100線而進入另一個非常態區間(超賣區)時,表明市場價格的弱勢狀態已經形成,將進入一個比較長的尋底過程,可以持有空單等待更高利潤。如果CCI指標曲線在超賣區運行了相當長的一段時間后開始掉頭向上,表明價格的短期底部初步探明,可以少量建倉。CCI指標曲線在超賣區運行的時間越長,確認短期的底部的準確度越高。
* 4.CCI指標曲線從下向上突破-100線而重新進入常態區間時,表明市場價格的探底階段可能結束,有可能進入一個盤整階段,可以逢低少量做多。
* 5.CCI指標曲線從下向上突破+100線而進入非常態區間(超買區)時,表明市場價格已經脫離常態而進入強勢狀態,如果伴隨較大的市場交投,應及時介入成功率將很大。
* 6.CCI指標曲線從下向上突破+100線而進入非常態區間(超買區)后,只要CCI指標曲線一直朝上運行,表明價格依然保持強勢可以繼續持有待漲。但是,如果在遠離+100線的地方開始掉頭向下時,則表明市場價格的強勢狀態將可能難以維持,漲勢可能轉弱,應考慮賣出。如果前期的短期漲幅過高同時價格回落時交投活躍,則應該果斷逢高賣出或做空。
* CCI主要是在超買和超賣區域發生作用,對急漲急跌的行情檢測性相對準確。非常適用于股票、外匯、貴金屬等市場的短期操作。[1]
```python
real = CCI(high, low, close, timeperiod=14)
```
Learn more about the Commodity Channel Index at [tadoc.org](http://www.tadoc.org/indicator/CCI.htm).
### CMO - Chande Momentum Oscillator 錢德動量擺動指標
> 函數名:CMO
名稱:錢德動量擺動指標
簡介:與其他動量指標擺動指標如相對強弱指標(RSI)和隨機指標(KDJ)不同,錢德動量指標在計算公式的分子中采用上漲日和下跌日的數據。
計算公式:CMO=(Su-Sd)*100/(Su+Sd)
其中:Su是今日收盤價與昨日收盤價(上漲日)差值加總。若當日下跌,則增加值為0;Sd是今日收盤價與做日收盤價(下跌日)差值的絕對值加總。若當日上漲,則增加值為0;
#### 指標應用
* 本指標類似RSI指標。
* 當本指標下穿-50水平時是買入信號,上穿+50水平是賣出信號。
* 錢德動量擺動指標的取值介于-100和100之間。
* 本指標也能給出良好的背離信號。
* 當股票價格創出新低而本指標未能創出新低時,出現牛市背離;
* 當股票價格創出新高而本指標未能創出新高時,當出現熊市背離時。
* 我們可以用移動均值對該指標進行平滑。
NOTE: The ``CMO`` function has an unstable period.
```python
real = CMO(close, timeperiod=14)
```
Learn more about the Chande Momentum Oscillator at [tadoc.org](http://www.tadoc.org/indicator/CMO.htm).
### DX - Directional Movement Index DMI指標又叫動向指標或趨向指標
> 函數名:DX
名稱:動向指標或趨向指標
簡介:通過分析股票價格在漲跌過程中買賣雙方力量均衡點的變化情況,即多空雙方的力量的變化受價格波動的影響而發生由均衡到失衡的循環過程,從而提供對趨勢判斷依據的一種技術指標。
分析和應用:[百度百科](https://baike.baidu.com/item/DMI%E6%8C%87%E6%A0%87/3423254?fr=aladdin)
[維基百科](https://zh.wikipedia.org/wiki/%E5%8B%95%E5%90%91%E6%8C%87%E6%95%B8)
[同花順學院](http://www.iwencai.com/school/search?cg=100&w=DMI)
NOTE: The ``DX`` function has an unstable period.
```python
real = DX(high, low, close, timeperiod=14)
```
Learn more about the Directional Movement Index at [tadoc.org](http://www.tadoc.org/indicator/DX.htm).
### MACD - Moving Average Convergence/Divergence
> 函數名:MACD
名稱:平滑異同移動平均線
簡介:利用收盤價的短期(常用為12日)指數移動平均線與長期(常用為26日)指數移動平均線之間的聚合與分離狀況,對買進、賣出時機作出研判的技術指標。
分析和應用:[百度百科](https://baike.baidu.com/item/MACD%E6%8C%87%E6%A0%87?fromtitle=MACD&fromid=3334786)
[維基百科](https://zh.wikipedia.org/wiki/MACD)
[同花順學院](http://www.iwencai.com/school/search?cg=100&w=MACD)
```python
macd, macdsignal, macdhist = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)
```
Learn more about the Moving Average Convergence/Divergence at [tadoc.org](http://www.tadoc.org/indicator/MACD.htm).
### MACDEXT - MACD with controllable MA type
> 函數名:MACDEXT (這個是干啥的(⊙o⊙)?)
名稱:
```python
macd, macdsignal, macdhist = MACDEXT(close, fastperiod=12, fastmatype=0, slowperiod=26, slowmatype=0, signalperiod=9, signalmatype=0)
```
### MACDFIX - Moving Average Convergence/Divergence Fix 12/26
```python
macd, macdsignal, macdhist = MACDFIX(close, signalperiod=9)
```
### MFI - Money Flow Index 資金流量指標
> 函數名:MFI
名稱:資金流量指標
簡介:屬于量價類指標,反映市場的運行趨勢
分析和應用:[百度百科](https://baike.baidu.com/item/mfi/7429225?fr=aladdin)
[同花順學院](http://www.iwencai.com/school/search?cg=100&w=MFI)
NOTE: The ``MFI`` function has an unstable period.
```python
real = MFI(high, low, close, volume, timeperiod=14)
```
Learn more about the Money Flow Index at [tadoc.org](http://www.tadoc.org/indicator/MFI.htm).
### MINUS_DI - Minus Directional Indicator
> 函數名:DMI 中的DI指標 負方向指標
名稱:下升動向值
簡介:通過分析股票價格在漲跌過程中買賣雙方力量均衡點的變化情況,即多空雙方的力量的變化受價格波動的影響而發生由均衡到失衡的循環過程,從而提供對趨勢判斷依據的一種技術指標。
分析和應用:[百度百科](https://baike.baidu.com/item/DMI%E6%8C%87%E6%A0%87/3423254?fr=aladdin)
[維基百科](https://zh.wikipedia.org/wiki/%E5%8B%95%E5%90%91%E6%8C%87%E6%95%B8)
[同花順學院](http://www.iwencai.com/school/search?cg=100&w=DMI)
NOTE: The ``MINUS_DI`` function has an unstable period.
```python
real = MINUS_DI(high, low, close, timeperiod=14)
```
Learn more about the Minus Directional Indicator at [tadoc.org](http://www.tadoc.org/indicator/MINUS_DI.htm).
### MINUS_DM - Minus Directional Movement
> 函數名:MINUS_DM
名稱: 上升動向值 DMI中的DM代表正趨向變動值即上升動向值
簡介:通過分析股票價格在漲跌過程中買賣雙方力量均衡點的變化情況,即多空雙方的力量的變化受價格波動的影響而發生由均衡到失衡的循環過程,從而提供對趨勢判斷依據的一種技術指標。
分析和應用:[百度百科](https://baike.baidu.com/item/DMI%E6%8C%87%E6%A0%87/3423254?fr=aladdin)
[維基百科](https://zh.wikipedia.org/wiki/%E5%8B%95%E5%90%91%E6%8C%87%E6%95%B8)
[同花順學院](http://www.iwencai.com/school/search?cg=100&w=DMI)
NOTE: The ``MINUS_DM`` function has an unstable period.
```python
real = MINUS_DM(high, low, timeperiod=14)
```
Learn more about the Minus Directional Movement at [tadoc.org](http://www.tadoc.org/indicator/MINUS_DM.htm).
### MOM - Momentum 動量
> 函數名:MOM
名稱: 上升動向值
簡介:投資學中意思為續航,指股票(或經濟指數)持續增長的能力。研究發現,贏家組合在牛市中存在著正的動量效應,輸家組合在熊市中存在著負的動量效應。
分析和應用:
[維基百科](https://zh.wikipedia.org/wiki/%E5%8B%95%E9%87%8F%E6%8C%87%E6%A8%99)
[同花順學院](http://www.iwencai.com/yike/detail/auid/cb18b2dbe2f455e6)
```python
real = MOM(close, timeperiod=10)
```
Learn more about the Momentum at [tadoc.org](http://www.tadoc.org/indicator/MOM.htm).
### PLUS_DI - Plus Directional Indicator
NOTE: The ``PLUS_DI`` function has an unstable period.
```python
real = PLUS_DI(high, low, close, timeperiod=14)
```
Learn more about the Plus Directional Indicator at [tadoc.org](http://www.tadoc.org/indicator/PLUS_DI.htm).
### PLUS_DM - Plus Directional Movement
NOTE: The ``PLUS_DM`` function has an unstable period.
```python
real = PLUS_DM(high, low, timeperiod=14)
```
Learn more about the Plus Directional Movement at [tadoc.org](http://www.tadoc.org/indicator/PLUS_DM.htm).
### PPO - Percentage Price Oscillator 價格震蕩百分比指數
> 函數名:PPO
名稱: 價格震蕩百分比指數
簡介:價格震蕩百分比指標(PPO)是一個和MACD指標非常接近的指標。
PPO標準設定和MACD設定非常相似:12,26,9和PPO,和MACD一樣說明了兩條移動平均線的差距,但是它們有一個差別是PPO是用百分比說明。
分析和應用:
[參考](http://blog.sina.com.cn/s/blog_7542a31c0101aux9.html)
```python
real = PPO(close, fastperiod=12, slowperiod=26, matype=0)
```
Learn more about the Percentage Price Oscillator at [tadoc.org](http://www.tadoc.org/indicator/PPO.htm).
### ROC - Rate of change : ((price/prevPrice)-1)*100 變動率指標
> 函數名:ROC
名稱: 變動率指標
簡介:ROC是由當天的股價與一定的天數之前的某一天股價比較,其變動速度的大小,來反映股票市變動的快慢程度
分析和應用:[百度百科](https://baike.baidu.com/item/ROC%E6%8C%87%E6%A0%87/3081705?fr=aladdin)
[同花順學院](http://www.iwencai.com/yike/detail/auid/6ac184fdb20d2f59)
```python
real = ROC(close, timeperiod=10)
```
Learn more about the Rate of change : ((price/prevPrice)-1)*100 at [tadoc.org](http://www.tadoc.org/indicator/ROC.htm).
### ROCP - Rate of change Percentage: (price-prevPrice)/prevPrice
```python
real = ROCP(close, timeperiod=10)
```
Learn more about the Rate of change Percentage: (price-prevPrice)/prevPrice at [tadoc.org](http://www.tadoc.org/indicator/ROCP.htm).
### ROCR - Rate of change ratio: (price/prevPrice)
```python
real = ROCR(close, timeperiod=10)
```
Learn more about the Rate of change ratio: (price/prevPrice) at [tadoc.org](http://www.tadoc.org/indicator/ROCR.htm).
### ROCR100 - Rate of change ratio 100 scale: (price/prevPrice)*100
```python
real = ROCR100(close, timeperiod=10)
```
Learn more about the Rate of change ratio 100 scale: (price/prevPrice)*100 at [tadoc.org](http://www.tadoc.org/indicator/ROCR100.htm).
### RSI - Relative Strength Index 相對強弱指數
> 函數名:RSI
名稱:相對強弱指數
簡介:是通過比較一段時期內的平均收盤漲數和平均收盤跌數來分析市場買沽盤的意向和實力,從而作出未來市場的走勢。
分析和應用:[百度百科](https://baike.baidu.com/item/RSI/6130115)
[維基百科](https://zh.wikipedia.org/wiki/%E7%9B%B8%E5%B0%8D%E5%BC%B7%E5%BC%B1%E6%8C%87%E6%95%B8)
[同花順學院](http://www.iwencai.com/yike/detail/auid/6a280c6cebcf140a)
NOTE: The ``RSI`` function has an unstable period.
```python
real = RSI(close, timeperiod=14)
```
Learn more about the Relative Strength Index at [tadoc.org](http://www.tadoc.org/indicator/RSI.htm).
### STOCH - Stochastic 隨機指標,俗稱KD
> 函數名:STOCH
名稱:隨機指標,俗稱KD
```python
slowk, slowd = STOCH(high, low, close, fastk_period=5, slowk_period=3, slowk_matype=0, slowd_period=3, slowd_matype=0)
```
Learn more about the Stochastic at [tadoc.org](http://www.tadoc.org/indicator/STOCH.htm).
### STOCHF - Stochastic Fast
```python
fastk, fastd = STOCHF(high, low, close, fastk_period=5, fastd_period=3, fastd_matype=0)
```
Learn more about the Stochastic Fast at [tadoc.org](http://www.tadoc.org/indicator/STOCHF.htm).
### STOCHRSI - Stochastic Relative Strength Index
NOTE: The ``STOCHRSI`` function has an unstable period.
```python
fastk, fastd = STOCHRSI(close, timeperiod=14, fastk_period=5, fastd_period=3, fastd_matype=0)
```
Learn more about the Stochastic Relative Strength Index at [tadoc.org](http://www.tadoc.org/indicator/STOCHRSI.htm).
### TRIX - 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
```python
real = TRIX(close, timeperiod=30)
```
Learn more about the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA at [tadoc.org](http://www.tadoc.org/indicator/TRIX.htm).
### ULTOSC - Ultimate Oscillator 終極波動指標
> 函數名:ULTOSC
名稱:終極波動指標
簡介:UOS是一種多方位功能的指標,除了趨勢確認及超買超賣方面的作用之外,它的“突破”訊號不僅可以提供最適當的交易時機之外,更可以進一步加強指標的可靠度。
分析和應用:[百度百科](https://baike.baidu.com/item/%E7%BB%88%E6%9E%81%E6%B3%A2%E5%8A%A8%E6%8C%87%E6%A0%87/1982936?fr=aladdin&fromid=12610066&fromtitle=%E7%BB%88%E6%9E%81%E6%8C%87%E6%A0%87)
[同花順學院](http://www.iwencai.com/yike/detail/auid/e89b98d39da975e4)
```python
real = ULTOSC(high, low, close, timeperiod1=7, timeperiod2=14, timeperiod3=28)
```
Learn more about the Ultimate Oscillator at [tadoc.org](http://www.tadoc.org/indicator/ULTOSC.htm).
### WILLR - Williams' %R 威廉指標
> 函數名:WILLR
名稱:威廉指標
簡介:WMS表示的是市場處于超買還是超賣狀態。股票投資分析方法主要有如下三種:基本分析、技術分析、演化分析。在實際應用中,它們既相互聯系,又有重要區別。
分析和應用:[百度百科](https://baike.baidu.com/item/%E5%A8%81%E5%BB%89%E6%8C%87%E6%A0%87?fr=aladdin)
[維基百科](https://zh.wikipedia.org/wiki/%E5%A8%81%E5%BB%89%E6%8C%87%E6%A8%99)
[同花順學院](http://www.iwencai.com/yike/detail/auid/967febb0316c57c1)
```python
real = WILLR(high, low, close, timeperiod=14)
```
Learn more about the Williams' %R at [tadoc.org](http://www.tadoc.org/indicator/WILLR.htm).
[Documentation Index](../doc_index.md)
[FLOAT_RIGHTAll Function Groups](../funcs.md)