rsi

package
v0.0.0-...-fa4f1ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllTrigger

func GetAllTrigger() map[int]string

GetAllTrigger -

func GetTriggerName

func GetTriggerName(id int) (str string)

GetTriggerName -

func ValidateOptions

func ValidateOptions(opt Options) error

Types

type Options

type Options struct {
	Overbought int `json:"overbought" validate:"required,min=1,max=99"`
	Oversold   int `json:"oversold" validate:"required,min=1,max=99"`
	Period     int `json:"period" validate:"required,min=4,max=150"`
}

Options -

type Trigger

type Trigger int
const (
	ValueAboveOverboughtLine         Trigger = iota + 1 //uptrend
	ValueBelowOversoldLine                              //downtrend
	ValueCrossOverboughtLineFromUp                      //put
	ValueCrossOverboughtLineFromDown                    //call
	ValueCrossOversoldLineFromUp                        //put
	ValueCrossOversoldLineFromDown                      //call
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL