backtesting

package
v0.0.0-...-1513131 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BacktestEngine

type BacktestEngine interface {
	AddAlgorithm(algo algorithm.TradingAlgorithm)                            // Adds a single algorithm to the engine
	AddAllAlgorithm(algos gr_variable.GrChannel[algorithm.TradingAlgorithm]) // Adds multiple algorithms to the engine
	Run(ctx context.Context)                                                 // Runs the backtest using the set algorithms and data
	GetPerformanceManager() backtesting_performance.PerformanceManager
}

func NewCommonAlgoFirstCacheDLLBacktestEngine

func NewCommonAlgoFirstCacheDLLBacktestEngine(data []model.DataPoint, adaptorType string, objectMap map[string]indicator_adaptor.IndicatorAdaptorCache, pc model.PerformanceConstraints, generator algoutil.AlgoGenerator) BacktestEngine

type CommonAlgoFirstCacheDLLBacktestEngine

type CommonAlgoFirstCacheDLLBacktestEngine struct {
	HistoricalData                     []model.DataPoint
	AdaptorType                        string
	Length                             int
	Algorithms                         gr_variable.ReadOnlyGrChannel[algorithm.TradingAlgorithm]
	UniqueAdapterNameToObjectMap       map[string]indicator_adaptor.IndicatorAdaptorCache
	AlgorithmsIterationsSummaryDetails backtesting_performance.AlgorithmsIterationsSummaryDetails
	// contains filtered or unexported fields
}

func (*CommonAlgoFirstCacheDLLBacktestEngine) AddAlgorithm

func (*CommonAlgoFirstCacheDLLBacktestEngine) AddAllAlgorithm

func (*CommonAlgoFirstCacheDLLBacktestEngine) GetPerformanceManager

func (*CommonAlgoFirstCacheDLLBacktestEngine) Run

Jump to

Keyboard shortcuts

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