backtest

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backtest

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

func NewBacktest

func NewBacktest(data *data.Data, strategy Strategy, brokers []Broker) *Backtest

NewBacktest Create backtest data: The data

func (*Backtest) ComputeStats

func (b *Backtest) ComputeStats() (result *Stats)

ComputeStats Calculating Backtest Statistics

func (*Backtest) GetLogs

func (b *Backtest) GetLogs() LogItems

func (*Backtest) Plot

func (b *Backtest) Plot()

Plot Output backtest results

func (*Backtest) Run

func (b *Backtest) Run()

Run Run backtest

Jump to

Keyboard shortcuts

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