report

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

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

func NewReport

func NewReport(trades []Trade, balanceInit float64) *Report

func NewReportSimple

func NewReportSimple() *Report

func (*Report) Analyzer

func (r *Report) Analyzer() (err error)

func (*Report) GenHTML

func (r *Report) GenHTML(w io.Writer) (err error)

func (*Report) GenHTMLReport

func (r *Report) GenHTMLReport(fPath string) (err error)

func (*Report) GenRPT

func (r *Report) GenRPT(fPath string) (err error)

func (*Report) GetReport

func (r *Report) GetReport() (report string)

func (*Report) MaxDrawdown

func (r *Report) MaxDrawdown() float64

MaxDrawdown get max drawdown percent

func (*Report) MaxDrawdownValue

func (r *Report) MaxDrawdownValue() float64

MaxDrawdown get max drawdown value

func (*Report) MaxLose

func (r *Report) MaxLose() (lose float64)

MaxLose max total lose

func (*Report) OnBalanceInit

func (r *Report) OnBalanceInit(balance float64) (err error)

func (*Report) OnTrade

func (r *Report) OnTrade(t Trade)

func (*Report) Profit

func (r *Report) Profit() (profit float64)

func (*Report) WinRate

func (r *Report) WinRate() (rate float64)

Jump to

Keyboard shortcuts

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