Documentation
¶
Overview ¶
Package simulator implements various trading / investment strategies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuySellIntraday ¶
type BuySellIntraday struct {
// contains filtered or unexported fields
}
BuySellIntraday is a configurable day trading strategy.
func (BuySellIntraday) ExecuteTicker ¶
func (s BuySellIntraday) ExecuteTicker(ctx context.Context, lp experiments.LogProfits, xactions bool) strategyResult
type Strategy ¶
type Strategy interface { // Concurrency-safe strategy execution for a single ticker. A zero result // means the strategy didn't apply, no transactions were executed. When // "xactions" is true, the list of transactions is generated in the result. ExecuteTicker(ctx context.Context, lp experiments.LogProfits, xactions bool) strategyResult }
Strategy API.
Click to show internal directories.
Click to hide internal directories.