indicator/indicator_template library
Classes
- Boll
- BOLLIndicator
- BOLLStyle
- CCIIndicator
- CCIStyle
- EMAIndicator
- IndicatorStyle
-
IndicatorTemplate<
T, K> - KDJIndicator
- KDJStyle
- MACDIndicator
- MACD:参数快线移动平均、慢线移动平均、移动平均, 默认参数值12、26、9。 公式:⒈首先分别计算出收盘价12日指数平滑移动平均线与26日指数平滑移动平均线,分别记为EMA(12)与EMA(26)。 ⒉求这两条指数平滑移动平均线的差,即:DIFF = EMA(SHORT) - EMA(LONG)。 ⒊再计算DIFF的M日的平均的指数平滑移动平均线,记为DEA。 ⒋最后用DIFF减DEA,得MACD。MACD通常绘制成围绕零轴线波动的柱形图。MACD柱状大于0涨颜色,小于0跌颜色。
- MACDStyle
- MAIndicator
-
MainIndicator<
T, K> - MAStyle
- RSIIndicator
- RSI RSI = SUM(MAX(CLOSE - REF(CLOSE,1),0),N) / SUM(ABS(CLOSE - REF(CLOSE,1)),N) × 100
- RSIStyle
- SARIndicator
- SARStyle
-
SecondaryIndicator<
T, K> - WRIndicator
- WRStyle
Typedefs
- GetYFunction = double Function(double y)