chanlun

package
v0.0.0-...-eac5957 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanLun

type ChanLun struct {
	//原始KLine
	SourceKLine *KLine

	//合并后的KLine
	MergedKLine *KLine

	//分型
	PartingKLine *KLine
}

func NewChanObject

func NewChanObject() *ChanLun

func (*ChanLun) AddKCandle

func (c *ChanLun) AddKCandle(k KCandle)

func (*ChanLun) Handle

func (c *ChanLun) Handle()

处理数据

①消除K线的包含(详细看处理原则)-> ②分型(顶分型,底分型)-> 顶分型区间,底分型区间 -> ③笔 -> ④线段(有缺口,无缺口) -> ⑤中枢 -> ⑥走势(盘整,趋势)-> ⑦背驰 -> ⑧中枢的升级

type KCandle

type KCandle struct {
	Time  uint32
	Open  float32
	Close float32
	High  float32
	Low   float32

	Parting int //0 未分型, -1 底分型  , 1 顶分型
	// contains filtered or unexported fields
}

type KLine

type KLine struct {
	Level   string //1m , 5m , 30m , 1d ....
	Candles *list.List
}

func NewKLine

func NewKLine(level string) *KLine

type Parting

type Parting struct {
}

Jump to

Keyboard shortcuts

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