Skip to content

Commit

Permalink
Fixing issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
cinar committed Dec 29, 2023
1 parent 9704d06 commit 62c6904
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions strategy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>)
Expand Down Expand Up @@ -594,7 +594,7 @@ Compute processes the provided asset snapshots and generates a stream of actiona
### func \(\*MacdStrategy\) [Name](<https://github.com/cinar/indicator/blob/v2/strategy/macd_strategy.go#L33>)

```go
func (m *MacdStrategy) Name() string
func (*MacdStrategy) Name() string
```

Name returns the name of the strategy.
Expand Down
2 changes: 1 addition & 1 deletion strategy/backtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion strategy/macd_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 62c6904

Please sign in to comment.