Documentation ¶
Index ¶
- func NewBollingerLowerBandIndicator(base techan.Indicator, window int, sigma float64) techan.Indicator
- func NewBollingerLowerBandIndicatorFromIndicator(base, ma, stdev techan.Indicator, sigma float64) techan.Indicator
- func NewBollingerUpperBandIndicator(base techan.Indicator, window int, sigma float64) techan.Indicator
- func NewBollingerUpperBandIndicatorFromIndicator(base, ma, stdev techan.Indicator, sigma float64) techan.Indicator
- func NewDecrementIndicator(base, dec techan.Indicator) techan.Indicator
- func NewDivisionIndicator(base, div techan.Indicator) techan.Indicator
- func NewFixedValueIndicator(val float64) techan.Indicator
- func NewIncrementIndicator(base, inc techan.Indicator) techan.Indicator
- func NewMultiplicationIndicator(base, mul techan.Indicator) techan.Indicator
- func NewRoundTimePeriod(time time.Time, period time.Duration) techan.TimePeriod
- func NewWeightedMovingAverage(base techan.Indicator, window int) techan.Indicator
- type BollingerBandIndicator
- type BollingerBandPercentBIndicator
- type BollingerBandWidthIndicator
- type CandleStickIndicator
- type DecrementIndicator
- type DivisionIndicator
- type FixedValueIndicator
- type FixedValuesIndicator
- func (fi *FixedValuesIndicator) AddDecimalValue(val big.Decimal)
- func (fi *FixedValuesIndicator) AddDecimalValues(vals ...big.Decimal)
- func (fi *FixedValuesIndicator) AddFloatValue(val float64)
- func (fi *FixedValuesIndicator) AddFloatValues(vals ...float64)
- func (fi FixedValuesIndicator) Calculate(index int) big.Decimal
- type HeikinAshiIndicator
- type IncrementIndicator
- type Indicators
- type MACDHistogramIndicator
- type MACDIndicator
- type MultiplicationIndicator
- type TimeSeries
- func (ts *TimeSeries) AddCandle(time time.Time) bool
- func (ts *TimeSeries) LastCandle() *techan.Candle
- func (ts *TimeSeries) LastIndex() int
- func (ts *TimeSeries) PeriodAdvanced(index int) int
- func (ts *TimeSeries) SetCandle(index int, open, high, low, close, volume float64)
- func (ts *TimeSeries) SetCandleFromString(index int, open, high, low, close, volume string)
- func (ts *TimeSeries) Tick(tradeTime time.Time, tradeAmount, tradePrice big.Decimal)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDecrementIndicator ¶
func NewFixedValueIndicator ¶
func NewIncrementIndicator ¶
func NewRoundTimePeriod ¶
NOTE: Additional from this extension.
Types ¶
type BollingerBandIndicator ¶
type BollingerBandPercentBIndicator ¶
type BollingerBandPercentBIndicator struct { Base techan.Indicator Width BollingerBandWidthIndicator }
func NewBollingerBandPercentIndicator ¶
func NewBollingerBandPercentIndicator(base techan.Indicator, window int, sigma float64) BollingerBandPercentBIndicator
func NewBollingerBandPercentIndicatorFromIndicator ¶
func NewBollingerBandPercentIndicatorFromIndicator(width BollingerBandWidthIndicator) BollingerBandPercentBIndicator
type BollingerBandWidthIndicator ¶
type BollingerBandWidthIndicator struct { Base techan.Indicator Upper BollingerBandIndicator Lower BollingerBandIndicator }
func NewBollingerBandWidthIndicator ¶
func NewBollingerBandWidthIndicator(base techan.Indicator, window int, sigma float64) BollingerBandWidthIndicator
type CandleStickIndicator ¶
type CandleStickIndicator struct { Series *techan.TimeSeries Open techan.Indicator High techan.Indicator Low techan.Indicator Close techan.Indicator }
func NewCandleStickIndicator ¶
func NewCandleStickIndicator(sereis *techan.TimeSeries) CandleStickIndicator
type DecrementIndicator ¶
type DivisionIndicator ¶
type FixedValueIndicator ¶
NOTE: Additional from this extension.
type FixedValuesIndicator ¶
func NewFixedValuesIndicator ¶
func NewFixedValuesIndicator(n int) FixedValuesIndicator
func NewFixedValuesIndicatorFromDecimalValues ¶
func NewFixedValuesIndicatorFromDecimalValues(vals ...big.Decimal) FixedValuesIndicator
func NewFixedValuesIndicatorFromFloatValues ¶
func NewFixedValuesIndicatorFromFloatValues(vals ...float64) FixedValuesIndicator
func (*FixedValuesIndicator) AddDecimalValue ¶
func (fi *FixedValuesIndicator) AddDecimalValue(val big.Decimal)
func (*FixedValuesIndicator) AddDecimalValues ¶
func (fi *FixedValuesIndicator) AddDecimalValues(vals ...big.Decimal)
func (*FixedValuesIndicator) AddFloatValue ¶
func (fi *FixedValuesIndicator) AddFloatValue(val float64)
func (*FixedValuesIndicator) AddFloatValues ¶
func (fi *FixedValuesIndicator) AddFloatValues(vals ...float64)
type HeikinAshiIndicator ¶
type HeikinAshiIndicator struct { Candle *techan.TimeSeries Heikin *techan.TimeSeries }
func NewHeikinAshiIndicator ¶
func NewHeikinAshiIndicator(candle *techan.TimeSeries) HeikinAshiIndicator
func (*HeikinAshiIndicator) Calculate ¶
func (ha *HeikinAshiIndicator) Calculate(index int)
type IncrementIndicator ¶
type Indicators ¶
func NewMultipleEMA ¶
func NewMultipleEMA(base techan.Indicator, window ...int) Indicators
NOTE: Additional from this extension.
func NewMultipleSMA ¶
func NewMultipleSMA(base techan.Indicator, window ...int) Indicators
NOTE: Additional from this extension.
type MACDHistogramIndicator ¶
type MACDHistogramIndicator struct { Base techan.Indicator Macd MACDIndicator Signal techan.Indicator Ind techan.Indicator }
func NewMACDHistogramIndicator ¶
func NewMACDHistogramIndicator(base techan.Indicator, shortwindow, longwindow, signalLineWindow int) MACDHistogramIndicator
func NewMACDHistogramIndicatorFromINdicator ¶
func NewMACDHistogramIndicatorFromINdicator(macd MACDIndicator, signalLineWindow int) MACDHistogramIndicator
type MACDIndicator ¶
type MACDIndicator struct { Base techan.Indicator Short techan.Indicator Long techan.Indicator Ind techan.Indicator }
func NewMACDIndicator ¶
func NewMACDIndicator(base techan.Indicator, shortwindow, longwindow int) MACDIndicator
func NewMACDIndicatorFromIndicator ¶
func NewMACDIndicatorFromIndicator(base, short, long techan.Indicator) MACDIndicator
type MultiplicationIndicator ¶
type TimeSeries ¶
type TimeSeries struct { Series *techan.TimeSeries Period techan.TimePeriod }
func NewTimeSeries ¶
func NewTimeSeries(start time.Time, period time.Duration) TimeSeries
func (*TimeSeries) AddCandle ¶
func (ts *TimeSeries) AddCandle(time time.Time) bool
NOTE: Additional from this extension.
func (*TimeSeries) LastCandle ¶
func (ts *TimeSeries) LastCandle() *techan.Candle
func (*TimeSeries) LastIndex ¶
func (ts *TimeSeries) LastIndex() int
func (*TimeSeries) PeriodAdvanced ¶
func (ts *TimeSeries) PeriodAdvanced(index int) int
NOTE: Additional from this extension.
func (*TimeSeries) SetCandle ¶
func (ts *TimeSeries) SetCandle(index int, open, high, low, close, volume float64)
NOTE: Additional from this extension.
func (*TimeSeries) SetCandleFromString ¶
func (ts *TimeSeries) SetCandleFromString(index int, open, high, low, close, volume string)
NOTE: Additional from this extension.
Click to show internal directories.
Click to hide internal directories.