indicator

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CandleData = []Candle{
	Candle{ID: 1, Name: "1 Second"},
	Candle{ID: 5, Name: "5 Second"},
	Candle{ID: 10, Name: "10 Second"},
	Candle{ID: 15, Name: "15 Second"},
	Candle{ID: 30, Name: "30 Second"},
	Candle{ID: 60, Name: "1 Minute"},
	Candle{ID: 120, Name: "2 Minute"},
	Candle{ID: 300, Name: "5 Minute"},
}

CandleData -

View Source
var SourceData = []Source{
	Source{ID: 1, Name: "Close"},
	Source{ID: 2, Name: "Open"},
	Source{ID: 3, Name: "High"},
	Source{ID: 4, Name: "Low"},
}

SourceData -

Functions

This section is empty.

Types

type Candle

type Candle struct {
	ID   int
	Name string
}

Candle -

type Indicator

type Indicator struct {
	Hash    string                 `json:"hash"`
	ID      string                 `json:"id"`
	Name    string                 `json:"name"`
	Options map[string]interface{} `json:"options"`
	Trigger map[int]string         `json:"trigger"`
	Active  bool                   `json:"active"`
}

Indicator -

type MaType

type MaType int

MaType -

const (
	//SMA -
	SMA MaType = iota
	//EMA -
	EMA
	//WMA -
	WMA
	//DEMA -
	DEMA
	//TEMA -
	TEMA
	//TRIMA -
	TRIMA
	//KAMA -
	KAMA
	//MAMA -
	MAMA
	//T3MA -
	T3MA
)

type Result

type Result struct {
	Time    time.Time               `json:"time"`
	Value   map[string]interface{}  `json:"value"`
	Trigger map[string]map[int]bool `json:"trigger"`
}

Result -

type Source

type Source struct {
	ID   int
	Name string
}

Source -

Jump to

Keyboard shortcuts

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