diff --git a/strategy/README.md b/strategy/README.md index 62810a7..c7e3f7b 100644 --- a/strategy/README.md +++ b/strategy/README.md @@ -69,7 +69,7 @@ The information provided on this project is strictly for informational purposes - [type MacdStrategy](<#MacdStrategy>) - [func NewMacdStrategy\(\) \*MacdStrategy](<#NewMacdStrategy>) - [func \(m \*MacdStrategy\) Compute\(snapshots \<\-chan \*asset.Snapshot\) \<\-chan Action](<#MacdStrategy.Compute>) - - [func \(m \*MacdStrategy\) Name\(\) string](<#MacdStrategy.Name>) + - [func \(\*MacdStrategy\) Name\(\) string](<#MacdStrategy.Name>) - [func \(m \*MacdStrategy\) Report\(c \<\-chan \*asset.Snapshot\) \*helper.Report](<#MacdStrategy.Report>) - [type QstickStrategy](<#QstickStrategy>) - [func NewQstickStrategy\(\) \*QstickStrategy](<#NewQstickStrategy>) @@ -594,7 +594,7 @@ Compute processes the provided asset snapshots and generates a stream of actiona ### func \(\*MacdStrategy\) [Name]() ```go -func (m *MacdStrategy) Name() string +func (*MacdStrategy) Name() string ``` Name returns the name of the strategy. diff --git a/strategy/backtest.go b/strategy/backtest.go index c3ab8ed..f527a30 100644 --- a/strategy/backtest.go +++ b/strategy/backtest.go @@ -150,7 +150,7 @@ func (b *Backtest) runWorkers() []*backtestResult { } // strategyReportFileName -func (b *Backtest) strategyReportFileName(assetName, strategyName string) string { +func (*Backtest) strategyReportFileName(assetName, strategyName string) string { return fmt.Sprintf("%s - %s.html", assetName, strategyName) } diff --git a/strategy/macd_strategy.go b/strategy/macd_strategy.go index 6e68975..e804f26 100644 --- a/strategy/macd_strategy.go +++ b/strategy/macd_strategy.go @@ -30,7 +30,7 @@ func NewMacdStrategy() *MacdStrategy { } // Name returns the name of the strategy. -func (m *MacdStrategy) Name() string { +func (*MacdStrategy) Name() string { return "MACD Strategy" }