Documentation
¶
Index ¶
- func BuildDrawDown(equity *[]float64) (*[]float64, float64)
- func BuildEquity(profits *[]float64) *[]float64
- func BuildGrossProfits(trades *[]db.Trade, tradeType string) (*[]time.Time, *[]float64)
- func BuildNetProfits(grossProfits *[]float64, costPerOper float32) *[]float64
- func CalcAverageTrade(profits []float64, filter []int8) float64
- func CalcWinningPercentage(profits []float64, filter []int8) float64
- func GetLocation(timezone string, ts *db.TradingSystem) (*time.Location, error)
- func LinearRegression(x []time.Time, y []float64) float64
- func Trunc2d(value float64) float64
- type Serie
- type SortedResults
- type WorkerPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDrawDown ¶
func BuildEquity ¶
func BuildGrossProfits ¶
func BuildNetProfits ¶
func CalcAverageTrade ¶
func CalcWinningPercentage ¶
func GetLocation ¶
Types ¶
type SortedResults ¶
func NewSortedResults ¶
func NewSortedResults(maxSize int, comparator utils.Comparator) *SortedResults
func (*SortedResults) Add ¶
func (sr *SortedResults) Add(item any)
func (*SortedResults) ToList ¶
func (sr *SortedResults) ToList() []any
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
func (*WorkerPool) Init ¶
func (p *WorkerPool) Init(numWorkers, queueSize int)
func (*WorkerPool) ShutDown ¶
func (p *WorkerPool) ShutDown() bool
func (*WorkerPool) Submit ¶
func (p *WorkerPool) Submit(task func())
Click to show internal directories.
Click to hide internal directories.