trendtrader: fix converge lint issue

This commit is contained in:
c9s 2022-12-03 12:36:51 +08:00
parent d5f8c3e756
commit 3521d42310
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -2,6 +2,7 @@ package trendtrader
import (
"context"
"github.com/c9s/bbgo/pkg/bbgo"
"github.com/c9s/bbgo/pkg/fixedpoint"
"github.com/c9s/bbgo/pkg/indicator"
@ -149,8 +150,5 @@ func line(p1, p2, p3 float64) int64 {
}
func converge(mr, ms float64) bool {
if ms > mr {
return true
}
return false
return ms > mr
}