Documentation
¶
Overview ¶
performance_constraints.go
Index ¶
Constants ¶
View Source
const ( PROTO_STORAGE AlgoStorageStrategy = "PROTO_STORAGE" PROTO_GZIP_STORAGE = "PROTO_GZIP_STORAGE" JSON_STORAGE = "JSON_STORAGE" JSON_GZIP_STORAGE = "JSON_GZIP_STORAGE" )
View Source
const ( Wait StockAction = "wait" Sell = "sell" Buy = "buy" InvalidSignal = "" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlgoStorageStrategy ¶
type AlgoStorageStrategy string
type HistoricalDataRequest ¶
type PerformanceConstraints ¶
type PerformanceConstraints struct { UpperLimit float64 `json:"upper_limit"` StopLoss float64 `json:"stop_loss"` MinPercentage float64 `json:"min_percentage"` LossWinRatio float64 `json:"loss_win_ratio"` TopNPercentageValues float64 `json:"top_n_percentage_values"` TopNValues int `json:"top_n_values"` TopNMinWinRate float64 `json:"top_n_min_percentage"` }
type PolygonResponse ¶
func (*PolygonResponse) MergeResponse ¶
func (pr *PolygonResponse) MergeResponse(newData *PolygonResponse)
type StockAction ¶
type StockAction string
StockAction represents the possible actions in the stock market.
type TradingSignal ¶
type TradingSignal struct { Time int64 Action StockAction }
func NewTradingSignal ¶
func NewTradingSignal() *TradingSignal
func (*TradingSignal) CleanUp ¶
func (ts *TradingSignal) CleanUp()
Click to show internal directories.
Click to hide internal directories.