Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackTest ¶
type BackTest struct { Bot *engine.Engine Datas data.Holder Strategy strategies.Handler Portfolio portfolio.Handler Exchange exchange.ExecutionHandler Statistic statistics.Handler EventQueue eventholder.EventHolder Reports report.Handler // contains filtered or unexported fields }
BackTest is the main holder of all backtesting functionality
func NewFromConfig ¶
func NewFromConfig(cfg *config.Config, templatePath, output string, bot *engine.Engine) (*BackTest, error)
NewFromConfig takes a strategy config and configures a backtester variable to run
func (*BackTest) Run ¶
Run will iterate over loaded data events save them and then handle the event based on its type
Click to show internal directories.
Click to hide internal directories.