emasmav1

package
v0.0.0-...-90f26a6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

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

Algorithm represents the Ema/Sma algorithm

func NewAlgorithm

func NewAlgorithm() (a *Algorithm, err error)

NewAlgorithm creates a new Ema/Sma algorithm

func (Algorithm) Config

func (a Algorithm) Config() types.AlgorithmConfig

Config returns the current configuration of the algorithm

func (Algorithm) DefaultConfig

func (a Algorithm) DefaultConfig() types.AlgorithmConfig

DefaultConfig returns the default configuration of the algorithm

func (Algorithm) Name

func (a Algorithm) Name() string

Name returns the name of the algorithm

func (*Algorithm) RunAsync

func (a *Algorithm) RunAsync(ctx context.Context, config types.AlgorithmConfig, seriesChannel types.SeriesChannel, signalChannel types.SignalChannel, waitGroup *sync.WaitGroup) (err error)

RunAsync runs the algorithm in a goroutine

Jump to

Keyboard shortcuts

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