Documentation ¶
Index ¶
- Variables
- type Candle
- type Config
- func (c *Config) AddIndicator(vals ...Indicator) *Config
- func (c *Config) AddJSFunc(js string) *Config
- func (c *Config) AddOverlay(vals ...Indicator) *Config
- func (c *Config) SetAssetsHost(assetsHost string) *Config
- func (c *Config) SetBottomRowContent(content string, h int) *Config
- func (c *Config) SetChartHeight(h int) *Config
- func (c *Config) SetChartWidth(w int) *Config
- func (c *Config) SetDraggable(draggable bool) *Config
- func (c *Config) SetEventDescWrapWidth(w int) *Config
- func (c *Config) SetLeftColContent(content string, w int) *Config
- func (c *Config) SetPrecision(p int) *Config
- func (c *Config) SetRightColContent(content string, w int) *Config
- func (c *Config) SetTheme(t Theme) *Config
- func (c *Config) SetTopRowContent(content string, h int) *Config
- func (c *Config) UseRepoAssets() *Config
- type Event
- type EventMark
- type EventType
- type Indicator
- func NewATR(n int) Indicator
- func NewBBandsEMA(n int, nStdDev float64) Indicator
- func NewBBandsSMA(n int, nStdDev float64) Indicator
- func NewBar(name string, vals []float64) Indicator
- func NewBoundedLine(name string, vals []float64, min, max, lowerMarker, upperMarker float64) Indicator
- func NewEMA(n int) Indicator
- func NewLine(name string, vals []float64) Indicator
- func NewLine2(n0 string, vals0 []float64, n1 string, vals1 []float64) Indicator
- func NewLine3(n0 string, vals0 []float64, n1 string, vals1 []float64, n2 string, ...) Indicator
- func NewMACD(fast, slow, signal int) Indicator
- func NewRSI(n int, oversold, overbought float64) Indicator
- func NewSMA(n int) Indicator
- type TAChart
- type Theme
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDuplicateCandleLabel = errors.New("candles with duplicated labels")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AddIndicator ¶
func (*Config) AddOverlay ¶
func (*Config) SetAssetsHost ¶
func (*Config) SetBottomRowContent ¶
func (*Config) SetChartHeight ¶
func (*Config) SetChartWidth ¶
func (*Config) SetDraggable ¶
func (*Config) SetEventDescWrapWidth ¶
func (*Config) SetLeftColContent ¶
func (*Config) SetPrecision ¶
func (*Config) SetRightColContent ¶
func (*Config) UseRepoAssets ¶
type Indicator ¶
type Indicator interface {
// contains filtered or unexported methods
}
func NewBBandsEMA ¶
func NewBBandsSMA ¶
func NewBoundedLine ¶
type Theme ¶
type Theme string
const ( ThemeWhite Theme = "white" ThemeDark Theme = "dark" ThemeChalk Theme = "chalk" ThemeEssos Theme = "essos" ThemeInfographic Theme = "infographic" ThemeMacarons Theme = "macarons" ThemePurplePassion Theme = "purple-passion" ThemeRoma Theme = "roma" ThemeRomantic Theme = "romantic" ThemeShine Theme = "shine" ThemeVintage Theme = "vintage" ThemeWalden Theme = "walden" ThemeWesteros Theme = "westeros" ThemeWonderland Theme = "wonderland" )
Click to show internal directories.
Click to hide internal directories.