lib

package
v0.0.0-...-43e64ad Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawGraph

func DrawGraph(gainPts plotter.XYs, capitalPts plotter.XYs, operations plotter.XYs)

func GenerateHistory

func GenerateHistory()

func GetTickerFilePath

func GetTickerFilePath(name string) string

func ListTickers

func ListTickers(root string) []string

func OpenTicker

func OpenTicker(name string) *os.File

func ParseLine

func ParseLine(line []byte) *model.DataPoint

func SaveRun

func SaveRun()

func TrackTicker

func TrackTicker(ticker string, strategy *model.StrategyInputs, input chan *model.SimplifiedDate)

func Verify

func Verify(history []model.PortfolioAction, inputs *model.StrategyInputs) float64

Types

type EncoderDecoder

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

func NewEncoderDecoder

func NewEncoderDecoder(writer *bufio.Writer, reader *bufio.Reader) *EncoderDecoder

func (*EncoderDecoder) ReadFromBin

func (ed *EncoderDecoder) ReadFromBin() (*model.DataPoint, error)

func (*EncoderDecoder) WriteToBin

func (ed *EncoderDecoder) WriteToBin(dp *model.DataPoint)

Jump to

Keyboard shortcuts

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