Documentation ¶
Index ¶
- Variables
- func EveningStar()
- func KDJ(rPeriod, kPeriod, dPeriod int, high, low, closing []float64) ([]float64, []float64, []float64)
- func Max(period int, values []float64) []float64
- func Min(period int, values []float64) []float64
- func RSIPeriod(period int, closing []float64) ([]float64, []float64)
- func ResolvePositionSide(stoch *models.Stoch, bound *RangeBound) (futures.PositionSideType, error)
- func Rma(period int, values []float64) []float64
- func SetUp()
- func WithinRangeBound(stoch *models.Stoch, bound *RangeBound) bool
- type Bound
- type RangeBound
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RangeBoundRecommend = &RangeBound{ RSI: &Bound{30, 70}, K: &Bound{20, 80}, D: &Bound{20, 80}, } RangeBoundReadyTrade = &RangeBound{ RSI: &Bound{20, 80}, K: &Bound{15, 85}, D: &Bound{15, 85}, } )
Functions ¶
func EveningStar ¶
func EveningStar()
func ResolvePositionSide ¶
func ResolvePositionSide(stoch *models.Stoch, bound *RangeBound) (futures.PositionSideType, error)
func Rma ¶
Rolling Moving Average (RMA).
R[0] to R[p-1] is SMA(values) R[p] and after is R[i] = ((R[i-1]*(p-1)) + v[i]) / p
Returns r.
func WithinRangeBound ¶
func WithinRangeBound(stoch *models.Stoch, bound *RangeBound) bool
Types ¶
type RangeBound ¶
Click to show internal directories.
Click to hide internal directories.