tState

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Win         = TradeState(1)
	Loss        = TradeState(-1)
	InTrade     = TradeState(2)
	CloseTs     = TradeState(3) // CloseTs: Max In Trade Time permitted from Entry
	CancelTs    = TradeState(4) // CancelTs: Max Excursion Time permitted from Trigger
	CancelPrice = TradeState(5) // CancelPrice: Max Favorable Excursion permitted from Entry
	NotEntry    = TradeState(6) // NotEntry: Never reached Entry Price
	BrakeEven   = TradeState(7) // BrakeEven: Never reached Brake Even Price
	DEFAULT     = TradeState(0)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TradeState

type TradeState int

func Get

func Get(s string) TradeState

func (TradeState) Log

func (s TradeState) Log() string

func (TradeState) String

func (s TradeState) String() string

Jump to

Keyboard shortcuts

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