queryhelper

package
v1.1.1-rc-21 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterMA

func FilterMA(tradeBlocks []Block, symbol string) (filterPoints []dia.FilterPoint)

func FilterMAIR

func FilterMAIR(tradeBlocks []Block, symbol string) (filterPoints []dia.FilterPoint)

func FilterVWAP

func FilterVWAP(tradeBlocks []Block, symbol string) (filterPoints []dia.FilterPoint)

func FilterVWAPIR

func FilterVWAPIR(tradeBlocks []Block, symbol string) (filterPoints []dia.FilterPoint)

func GetData

func GetData() string

GetData Returns trades

Types

type Block

type Block struct {
	Trades []dia.Trade
}

type Blockgenerator

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

func NewBlockGenerator

func NewBlockGenerator(trades []dia.Trade) *Blockgenerator

func (*Blockgenerator) GenerateShift

func (bg *Blockgenerator) GenerateShift(blockSizeSeconds, blockShiftSeconds int64) (tradeBlocks []Block)

func (*Blockgenerator) GenerateSize

func (bg *Blockgenerator) GenerateSize(blockSizeSeconds int64) (tradeBlocks []Block)

Jump to

Keyboard shortcuts

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