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 ¶
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) 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
Click to show internal directories.
Click to hide internal directories.