Documentation ¶
Index ¶
- Constants
- Variables
- func GetCandleMomentStringName(k CandleMoment) (sc string)
- func GetMAStringName(k MAType) (sc string)
- func GetPluginName(id int) (rs string)
- func GetResultName(in CandleResult) (sc string)
- type AdxDi
- func (cc *AdxDi) All() *AdxDi
- func (cc *AdxDi) BuiltIn() *AdxDi
- func (cc *AdxDi) Compare() (rs string)
- func (cc *AdxDi) Fastest() *AdxDi
- func (cc *AdxDi) Result(res int) (out AdxDiOutput)
- func (cc *AdxDi) ResultAll() (out []AdxDiOutput)
- func (cc *AdxDi) TAlib() *AdxDi
- func (cc *AdxDi) Tulip() *AdxDi
- type AdxDiOption
- type AdxDiOutput
- type Ao
- type AoOption
- type BBands
- func (cc *BBands) All() *BBands
- func (cc *BBands) BuiltIn() *BBands
- func (cc *BBands) Compare() (rs string)
- func (cc *BBands) Fastest() *BBands
- func (cc *BBands) Result(res int) (out BBandsOutput)
- func (cc *BBands) ResultAll() (out []BBandsOutput)
- func (cc *BBands) TAlib() *BBands
- func (cc *BBands) Tulip() *BBands
- type BBandsOption
- type BBandsOutput
- type CandleMoment
- type CandleResult
- type Cci
- type CciOption
- type CciOutput
- type Crossover
- type CrossoverOption
- type GenralOutput
- type LinearReg
- func (cc *LinearReg) All() *LinearReg
- func (cc *LinearReg) BuiltIn() *LinearReg
- func (cc *LinearReg) Compare() (rs string)
- func (cc *LinearReg) Fastest() *LinearReg
- func (cc *LinearReg) Result(res int) (out GenralOutput)
- func (cc *LinearReg) ResultAll() (out []GenralOutput)
- func (cc *LinearReg) TAlib() *LinearReg
- func (cc *LinearReg) Tulip() *LinearReg
- type LinearRegOption
- type MA
- type MAOption
- type MAType
- type Mom
- type MomOption
- type Pattern
- type PatternOption
- type PatternOut
- type Rsi
- type RsiOption
- type Stoch
- func (cc *Stoch) All() *Stoch
- func (cc *Stoch) BuiltIn() *Stoch
- func (cc *Stoch) Compare() (rs string)
- func (cc *Stoch) Fastest() *Stoch
- func (cc *Stoch) Result(res int) (out StochOutput)
- func (cc *Stoch) ResultAll() (out []StochOutput)
- func (cc *Stoch) TAlib() *Stoch
- func (cc *Stoch) Tulip() *Stoch
- type StochOption
- type StochOutput
- type Tsf
- type TsfOption
Constants ¶
View Source
const ( //BuiltIn - BuiltIn = iota //TAlib - TAlib //Tulip - Tulip //All - All //Fastest - Fastest )
Variables ¶
View Source
var MANames = []string{
"SMA",
"EMA",
"WMA",
"DEMA",
"TEMA",
"TRIMA",
"KAMA",
"MAMA",
"ZLEMA",
"HMA",
}
MANames -
Functions ¶
func GetCandleMomentStringName ¶
func GetCandleMomentStringName(k CandleMoment) (sc string)
GetCandleMomentStringName -
Types ¶
type AdxDi ¶
AdxDi - Average Directional Movement Index with PlusDi and MinusDi
type AdxDiOption ¶
AdxDiOption -
type AdxDiOutput ¶
type AdxDiOutput struct { Type int Error error Timer time.Duration Adx []float64 PlusDi []float64 MinusDi []float64 }
AdxDiOutput -
type Ao ¶
Ao - Awesome Oscillator
type BBands ¶
BBands - Bollinger Bands
type BBandsOption ¶
BBandsOption -
type BBandsOutput ¶
type BBandsOutput struct { Type int Error error Timer time.Duration Upper []float64 Middle []float64 Lower []float64 }
BBandsOutput -
type CandleMoment ¶
type CandleMoment int
CandleMoment -
const ( //CandleMomentAllPattern - CandleMomentAllPattern CandleMoment = iota + 99 //CandleMomentBullishRiseFall3Methods - CandleMomentBullishRiseFall3Methods //CandleMomentBearishRiseFall3Methods - CandleMomentBearishRiseFall3Methods //CandleMomentHammerPattern - CandleMomentHammerPattern //CandleMomentInvertedHammerPattern - CandleMomentInvertedHammerPattern //CandleMomentBullishEngulfing - CandleMomentBullishEngulfing //CandleMomentPiercingLine - CandleMomentPiercingLine //CandleMomentMorningStar - CandleMomentMorningStar //CandleMomentThreeWhiteSoldiers - CandleMomentThreeWhiteSoldiers //CandleMomentBullishHarami - CandleMomentBullishHarami //CandleMomentBullishAbandonedBaby - CandleMomentBullishAbandonedBaby //CandleMomentBullishMarubozu - CandleMomentBullishMarubozu //CandleMomentHangingMan - CandleMomentHangingMan //CandleMomentShootingStar - CandleMomentShootingStar //CandleMomentBearishEngulfing - CandleMomentBearishEngulfing //CandleMomentEveningStar - CandleMomentEveningStar //CandleMomentThreeBlackCrows - CandleMomentThreeBlackCrows //CandleMomentDarkCloudCover - CandleMomentDarkCloudCover //CandleMomentBearishHarami - CandleMomentBearishHarami //CandleMomentBearishAbandonedBaby - CandleMomentBearishAbandonedBaby //CandleMomentBearishMarubozu - CandleMomentBearishMarubozu //CandleMomentAllEngulfing - CandleMomentAllEngulfing //CandleMomentAllHarami - CandleMomentAllHarami )
type CandleResult ¶
type CandleResult int
CandleResult -
const ( //CandleResultCall - CandleResultCall CandleResult = iota + 1 //CandleResultPut - CandleResultPut //CandleResultNeutral - CandleResultNeutral )
type Cci ¶
Cci - Commodity Channel Index
type CciOption ¶
CciOption -
type CciOutput ¶
CciOutput -
type Crossover ¶
Crossover -
type CrossoverOption ¶
CrossoverOption -
type GenralOutput ¶
type GenralOutput struct { Type int Error error Data []float64 Direction CandleResult Timer time.Duration }
GenralOutput -
type LinearReg ¶
LinearReg - Linear Regression
type MA ¶
MA - Moving Average
type Mom ¶
Mom - Momentum
type Pattern ¶
Pattern - Candle Pattern
type PatternOption ¶
type PatternOption struct { Open []float64 High []float64 Low []float64 Close []float64 PatternType []CandleMoment SendAllPatternDetection bool }
PatternOption -
type PatternOut ¶
type PatternOut struct { PatternAll map[CandleMoment]CandleResult Pattern map[CandleMoment]CandleResult Error error Timer time.Duration }
PatternOut -
type Rsi ¶
Rsi - Relative Strength Index
type Stoch ¶
Stoch - Stochastic
type StochOption ¶
type StochOption struct { High []float64 Low []float64 Close []float64 KPeriod int SlowKPeriod int DPeriod int }
StochOption -
type StochOutput ¶
type StochOutput struct { Type int Error error Timer time.Duration SlowK []float64 SlowD []float64 }
StochOutput -
type Tsf ¶
Tsf - Time Series Forecast
Source Files ¶
Click to show internal directories.
Click to hide internal directories.