Skip to content

Commit 043c867

Browse files
authored
Merge pull request #8 from WisZhou/master
UPDATE: 添加MACD_EXT函数文档, 修正容易造成误会的函数返回变量名
2 parents 0293b76 + f80315b commit 043c867

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

func_groups/momentum_indicators.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ NOTE: The ``CMO`` function has an unstable period.
139139
real = CMO(close, timeperiod=14)
140140
```
141141

142-
Learn more about the Chande Momentum Oscillator at [tadoc.org](http://www.tadoc.org/indicator/CMO.htm).
142+
Learn more about the Chande Momentum Oscillator at [tadoc.org](http://www.tadoc.org/indicator/CMO.htm).
143143
### DX - Directional Movement Index DMI指标又叫动向指标或趋向指标
144144

145145
> 函数名:DX
@@ -158,27 +158,34 @@ Learn more about the Directional Movement Index at [tadoc.org](http://www.tadoc.
158158
### MACD - Moving Average Convergence/Divergence
159159
> 函数名:MACD
160160
名称:平滑异同移动平均线
161-
简介:利用收盘价的短期(常用为12日)指数移动平均线与长期(常用为26日)指数移动平均线之间的聚合与分离状况,对买进、卖出时机作出研判的技术指标。
162-
分析和应用:[百度百科](https://baike.baidu.com/item/MACD%E6%8C%87%E6%A0%87?fromtitle=MACD&fromid=3334786)
163-
[维基百科](https://zh.wikipedia.org/wiki/MACD)
164-
[同花顺学院](http://www.iwencai.com/school/search?cg=100&w=MACD)
161+
简介:利用收盘价的短期(常用为12日)指数移动平均线与长期(常用为26日)指数移动平均线之间的聚合与分离状况,对买进、卖出时机作出研判的技术指标。
162+
分析和应用:[百度百科](https://baike.baidu.com/item/MACD%E6%8C%87%E6%A0%87?fromtitle=MACD&fromid=3334786)
163+
[维基百科](https://zh.wikipedia.org/wiki/MACD)
164+
[同花顺学院](http://www.iwencai.com/school/search?cg=100&w=MACD)
165165
```python
166-
macd, macdsignal, macdhist = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)
166+
dif, dem, histogram = MACD(close, fastperiod=12, slowperiod=26, signalperiod=9)
167167
```
168168

169169
Learn more about the Moving Average Convergence/Divergence at [tadoc.org](http://www.tadoc.org/indicator/MACD.htm).
170170
### MACDEXT - MACD with controllable MA type
171171

172-
> 函数名:MACDEXT (这个是干啥的(⊙o⊙)?)
173-
名称:
174-
172+
> 函数名:MACDEXT
173+
名称:平滑异同移动平均线(可控制移动平均算法)
174+
简介:同MACD函数(固定使用EMA作为matype),并提供参数控制计算DIF, DEM时使用的移动平均算法。计算DIF时使用fastmatype与slowmatype,计算DEM时使用signalmatype,`Histogram = DIF - DEM`。matype参数详见`talib.MA_Type``Overlap Studies Functions 重叠研究指标`文档。
175+
分析和应用:[百度百科](https://baike.baidu.com/item/MACD%E6%8C%87%E6%A0%87?fromtitle=MACD&fromid=3334786)
176+
[维基百科](https://zh.wikipedia.org/wiki/MACD)
177+
[同花顺学院](http://www.iwencai.com/school/search?cg=100&w=MACD)
175178
```python
176-
macd, macdsignal, macdhist = MACDEXT(close, fastperiod=12, fastmatype=0, slowperiod=26, slowmatype=0, signalperiod=9, signalmatype=0)
179+
dif, dem, histogram = MACDEXT(close, fastperiod=12, fastmatype=0, slowperiod=26, slowmatype=0, signalperiod=9, signalmatype=0)
177180
```
178181

179182
### MACDFIX - Moving Average Convergence/Divergence Fix 12/26
183+
184+
> 函数名:MFI
185+
名称:平滑异同移动平均线(固定快慢均线周期为12/26)
186+
简介:同MACD函数, 固定快均线周期fastperiod=12, 慢均线周期slowperiod=26.
180187
```python
181-
macd, macdsignal, macdhist = MACDFIX(close, signalperiod=9)
188+
dif, dem, histogram = MACDFIX(close, signalperiod=9)
182189
```
183190

184191
### MFI - Money Flow Index 资金流量指标

0 commit comments

Comments
 (0)