Skip to content

Commit

Permalink
buyandhold: remove kline event debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 14, 2020
1 parent f604e3c commit 572f7a0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/strategy/buyandhold/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
var iw = types.IntervalWindow{Interval: s.Interval, Window: s.MovingAverageWindow}
var ema = standardIndicatorSet.EWMA(iw)

session.Stream.OnKLine(func(kline types.KLine) {
// skip k-lines from other symbols
if kline.Symbol != s.Symbol {
return
}

changePercentage := kline.GetChange() / kline.Open
log.Infof("change %f <=> %f", changePercentage, s.MinDropPercentage.Float64())
})

session.Stream.OnKLineClosed(func(kline types.KLine) {
// skip k-lines from other symbols
if kline.Symbol != s.Symbol {
Expand Down

0 comments on commit 572f7a0

Please sign in to comment.