Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoFibo ¶
type AutoFibo struct { Tag quota.IndicatorTag `mapstructure:"tag"` Ratios []float64 `mapstructure:"ratios"` Deviation float64 `mapstructure:"deviation"` Depth int `mapstructure:"depth"` }
AutoFibo is basically fibonacci series applied on the best spot to find some resistance/support lines.
type BollingerBandsB ¶
type BollingerBandsB struct { Tag quota.IndicatorTag `mapstructure:"tag"` Std StandardDeviation `mapstructure:"standardDeviation"` }
BollingerBandsB is an advanced bollinger bands indicator.
func (*BollingerBandsB) Add ¶
Add will calculate and add BollingerBandsB into the candle or whole quota.
func (*BollingerBandsB) Is ¶
func (bbb *BollingerBandsB) Is(tag quota.IndicatorTag) bool
Is determine provided tag belongs to this quota.Indicator or not.
type Hp ¶
type Hp struct { Tag quota.IndicatorTag `mapstructure:"tag"` Source quota.Source `mapstructure:"source"` Lambda float64 `mapstructure:"lambda"` Length int `mapstructure:"length"` }
Hp filters the given source by Hodrick-Prescott filter.
type LinearRegression ¶
type LinearRegression struct { Tag quota.IndicatorTag `mapstructure:"tag"` Source quota.Source `mapstructure:"source"` InTimePeriod int `mapstructure:"period"` }
LinearRegression is the lr indicator.
func (*LinearRegression) Add ¶
Add will calculate and add LinearRegression into the candle or whole quota.
func (*LinearRegression) Is ¶
func (lr *LinearRegression) Is(tag quota.IndicatorTag) bool
Is determine provided tag belongs to this quota.Indicator or not.
type Ma ¶
type Ma struct { Tag quota.IndicatorTag `mapstructure:"tag"` Source quota.Source `mapstructure:"source"` Type talib.MaType `mapstructure:"type"` InTimePeriod int `mapstructure:"period"` }
Ma is a general wrapper for all talib.MaType supported by talib.
type StandardDeviation ¶
type StandardDeviation struct { Tag quota.IndicatorTag `mapstructure:"tag"` Source quota.Source `mapstructure:"source"` InTimePeriod int `mapstructure:"period"` Deviation float64 `mapstructure:"deviation"` }
StandardDeviation represents standard deviation indicator.
func (*StandardDeviation) Add ¶
Add will calculate and add StandardDeviation into the candle or whole quota.
func (*StandardDeviation) Is ¶
func (sd *StandardDeviation) Is(tag quota.IndicatorTag) bool
Is determine provided tag belongs to this quota.Indicator or not.
type Stoch ¶
type Stoch struct { Tag quota.IndicatorTag `mapstructure:"tag"` KTag quota.IndicatorTag `mapstructure:"kTag"` DTag quota.IndicatorTag `mapstructure:"dTag"` InFastKPeriod int `mapstructure:"kLength"` InSlowKPeriod int `mapstructure:"kSmoothing"` InKMaType talib.MaType `mapstructure:"kMaType"` InSlowDPeriod int `mapstructure:"dSmoothing"` InDMaType talib.MaType `mapstructure:"dMaType"` }
Stoch is the stochastic indicator.