mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
buyandhold: remove kline event debug log
This commit is contained in:
parent
f604e3c3c9
commit
572f7a0e12
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user