Documentation ¶
Index ¶
- func FilterEMA(points []dia.FilterPoint, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterMA(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterMAIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterMEDIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterVOL(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterVWAP(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func FilterVWAPIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
- func GetData() string
- type Block
- type Blockgenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterEMA ¶ added in v1.4.0
func FilterEMA(points []dia.FilterPoint, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterMA ¶
func FilterMA(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterMAIR ¶
func FilterMAIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterMEDIR ¶ added in v1.4.0
func FilterMEDIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterVOL ¶ added in v1.4.2
func FilterVOL(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterVWAP ¶
func FilterVWAP(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
func FilterVWAPIR ¶
func FilterVWAPIR(tradeBlocks []Block, asset dia.Asset, blockSize int) (filterPoints []dia.FilterPoint, metadata *dia.FilterPointMetadata)
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(firstBlockStartTime, 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.