Documentation ¶ Index ¶ Variables type Backtest func New(ctx context.Context, shortcode string, params map[string]json.RawMessage, ...) (*Backtest, error) func (b *Backtest) Save(ctx context.Context, userID string, permanent bool) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrStrategyNotFound = errors.New("strategy not found") ) Functions ¶ This section is empty. Types ¶ type Backtest ¶ type Backtest struct { PortfolioModel *portfolio.Model Performance *portfolio.Performance } func New ¶ func New(ctx context.Context, shortcode string, params map[string]json.RawMessage, benchmark *data.Security, startDate time.Time, endDate time.Time) (*Backtest, error) func (*Backtest) Save ¶ func (b *Backtest) Save(ctx context.Context, userID string, permanent bool) Save the backtest to the Database Source Files ¶ View all Source files strategy.go Click to show internal directories. Click to hide internal directories.