Documentation
¶
Index ¶
- Constants
- func Efi(inTimePeriod int, inReal, inVol []float64) []float64
- func Impulse(ema, macdHist []float64) []int
- func KC(inHigh, inLow, inClose []float64, inTimePeriod int, multiplier float64, ...) (upper, basis, lower []float64)
- func KCLB(inHigh, inLow, inClose []float64, inTimePeriod int, multiplier float64) (upper, basis, lower []float64)
- func KCTV(inHigh, inLow, inClose []float64, inTimePeriod int, multiplier float64) (upper, basis, lower []float64)
- func Keltner(factor float64, mean, atr []float64) (upper, lower []float64)
- func Multiply(source []float64, multiplier float64) []float64
- func Rtm(atrPeriod, emaPeriod int, factor float64, inHigh, inLow, inClose []float64) (mean, upper, lower, atr []float64)
- func Squeeze(bbl, kcl int, bbf, kcf float64, inHigh, inLow, inClose []float64) (r Result, d Detail)
- func SuperTrend(factor float64, period int, inHigh, inLow, inClose []float64) ([]float64, []bool)
- func SuperTrendDetail(factor float64, period int, inHigh, inLow, inClose []float64) ([]float64, []float64, []float64, []bool)
- type Detail
- type Result
- type Sniper
Constants ¶
const ( Black int = 1 Gray = -1 Blue = 0 )
Variables ¶
This section is empty.
Functions ¶
func KCLB ¶ added in v0.4.2
func KCLB(inHigh, inLow, inClose []float64, inTimePeriod int, multiplier float64) (upper, basis, lower []float64)
Keltner Channel used by LazyBear
func KCTV ¶ added in v0.4.2
func KCTV(inHigh, inLow, inClose []float64, inTimePeriod int, multiplier float64) (upper, basis, lower []float64)
Keltner Channel used by TradingView, use EMA as default
func Squeeze ¶ added in v0.4.0
Squeeze Momentum Indicator [LazyBear] https://cn.tradingview.com/script/nqQ1DT5a-Squeeze-Momentum-Indicator-LazyBear/ bbl: BB Length kcl: KC Length bbf: BB MultFactor kcf: KC MulFactor
func SuperTrend ¶
SuperTrend V1.0 - Buy or Sell Signal https://cn.tradingview.com/chart/5wBFaZWw/ trend true = green, false = red red->green = false->true = buy green->red = true->false = sell