realtime

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package realtime 实时数据相关的功能集合

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementalMovingAverage added in v0.7.9

func IncrementalMovingAverage(previousHalfValue float64, period int, price float64) float64

IncrementalMovingAverage 增量计算移动平均线

period 周期数
previousHalfValue 前period-1的平均值
price 现价

func MovingAverage

func MovingAverage(CLOSE, HIGH, LOW stat.Series, PN int) (ma, half, maMax, maMin stat.Series)

MovingAverage 计算均线范围

func TradeSessionHasEnd

func TradeSessionHasEnd(date string) bool

TradeSessionHasEnd 是否收盘

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL