Documentation ¶
Index ¶
- Constants
- type State
- func (s *State) Clear(ctx context.Context) error
- func (s State) Format(color bool) string
- func (s *State) Init(db *mongo.Database)
- func (s *State) Load(ctx context.Context) error
- func (s *State) Tide() int
- func (s *State) UpdateSignal(ctx context.Context, newSignal int) error
- func (s *State) UpdateTide(ctx context.Context, newState int) error
- func (s *State) UpdateWave(ctx context.Context, newWave int) error
- func (s *State) Wave() int
Constants ¶
View Source
const ( TrendUp int = 1 TrendDown = -1 TrendNeutral = 0 SignalWait = 0 SignalLong = 1 SignalSell = -1 SignalShort = -2 SignalCover = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.