Documentation ¶
Index ¶
- func FilterMA(tradeBlocks []Block, symbol string) (filterPoints []dia.FilterPoint)
- func FilterMAIR(tradeBlocks []Block, symbol string) (filterPoints []dia.FilterPoint)
- func FilterVWAP(tradeBlocks []Block, symbol string) (filterPoints []dia.FilterPoint)
- func FilterVWAPIR(tradeBlocks []Block, symbol string) (filterPoints []dia.FilterPoint)
- func GetData() string
- type Block
- type Blockgenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.