Documentation ¶
Overview ¶
Package realtime 实时数据相关的功能集合
Index ¶
- func DynamicMovingAverage(previousHalfValue float64, period int, snapshot factors.QuoteSnapshot) (ma, maHigh, maLow float64)
- func IncrementalMovingAverage(previousHalfValue float64, period int, price float64) float64
- func MovingAverage(CLOSE, HIGH, LOW stat.Series, PN int) (ma, half, maMax, maMin stat.Series)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DynamicMovingAverage ¶ added in v1.0.0
func DynamicMovingAverage(previousHalfValue float64, period int, snapshot factors.QuoteSnapshot) (ma, maHigh, maLow float64)
DynamicMovingAverage 增量计算移动平均线的范围
period 周期数 previousHalfValue 前period-1的平均值 price 现价
func IncrementalMovingAverage ¶ added in v0.7.9
IncrementalMovingAverage 增量计算移动平均线
period 周期数 previousHalfValue 前period-1的平均值 price 现价
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.