From 0eeb2382f9cc6c8f335a0bcaf480a98d5ac31ac5 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 19 Jun 2020 11:24:55 +0800 Subject: [PATCH] improve messages --- bbgo/kline_detector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbgo/kline_detector.go b/bbgo/kline_detector.go index 3335b5d12..c0ad3d95d 100644 --- a/bbgo/kline_detector.go +++ b/bbgo/kline_detector.go @@ -178,12 +178,12 @@ func (d *KLineDetector) Detect(e *KLineEvent, tradingCtx *TradingContext) (reaso } if NotZero(d.MaxPriceChange) && maxChange > d.MaxPriceChange { - return fmt.Sprintf("1m lookback window (x %d) max price change %f > %f", d.LookBackFrames, maxChange, d.MaxPriceChange), false + return fmt.Sprintf("1m lookback window (x %d) exceeded max price change %f > %f", d.LookBackFrames, maxChange, d.MaxPriceChange), false } if d.EnableMinThickness { if kline.GetThickness() < d.MinThickness { - return fmt.Sprintf("kline too thin %f (1m) < min kline thickness %f, skip to the next round", kline.GetThickness(), d.MinThickness), false + return fmt.Sprintf("kline too thin. %f < min kline thickness %f", kline.GetThickness(), d.MinThickness), false } }