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
Click to show internal directories.
Click to hide internal directories.