Skip to content

Instantly share code, notes, and snippets.

View JoeHetfield's full-sized avatar
🎯
Focusing

Joe Hetfield JoeHetfield

🎯
Focusing
  • Microsoft
  • Beijing
  • 01:05 (UTC +08:00)
View GitHub Profile
@JoeHetfield
JoeHetfield / MACD.md
Last active September 18, 2019 10:14
MACD

MACD

  • 定义

    MACD 是一种在技术分析中极其流行的指标。MACD 可以用于识别证券总体趋势的各个方面。这些方面中最明显的是 动量,以及趋势的方向和持续时间。使 MACD 的信息如此丰富的原因是,它实际上是两种类型指标的组合。首先,MACD 采用两根长度不同的 移动均线 (一种滞后指标)来识别趋势的方向和持续时间。然后,MACD 使用这两根移动均线在数值上的差(MACD 线),和一根这些值的 EMA(信号线),并将这两条线的差绘制成一个在中央零线上下摆动的直方图。这个直方图就是证券动量的一个优秀指标。

  • 历史

    MACD 的建立可以分为两个独立的事件。

  1. 1970 年代,Gerald Appel 创建了 MACD 线。
@JoeHetfield
JoeHetfield / NestedDataSource.js
Last active December 21, 2015 02:59
This is data source for fuelux's datagrid, which support nested property. property could nested in many level, until property path hit null or undefined, then the result will be "null" or "undefined". could be useful, I think.
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['underscore'], factory);
} else {
root.NestedDataSource = factory();
}
}(this, function () {
var NestedDataSource = function (options) {
this._formatter = options.formatter;