candlesticks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	// contains filtered or unexported fields
}

func NewChart

func NewChart(data *candlestick.List, period period.Symbol) *Chart

func (Chart) GetDisplayedDataMinMax

func (chart Chart) GetDisplayedDataMinMax() (min, max float64)

func (*Chart) Grid

func (chart *Chart) Grid() charts.Grid

func (Chart) MissingData

func (chart Chart) MissingData(margin int) (first, last *time.Time)

func (*Chart) MoveLeft

func (chart *Chart) MoveLeft()

func (*Chart) MoveRight

func (chart *Chart) MoveRight()

func (*Chart) SetDisplayedTime

func (chart *Chart) SetDisplayedTime(t time.Time)

func (*Chart) SetHeight

func (chart *Chart) SetHeight(height int)

func (*Chart) SetVerticalBoundaries

func (chart *Chart) SetVerticalBoundaries(min, max float64)

func (*Chart) SetWidth

func (chart *Chart) SetWidth(width int)

func (*Chart) UpsertData

func (chart *Chart) UpsertData(data *candlestick.List) error

func (Chart) View

func (chart Chart) View() string

Jump to

Keyboard shortcuts

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