show max change limit

This commit is contained in:
c9s 2020-06-19 11:11:16 +08:00
parent 7b4a2782bb
commit 332893c882

View File

@ -154,7 +154,7 @@ 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", d.LookBackFrames, maxChange), false
return fmt.Sprintf("1m lookback window (x %d) max price change %f > %f", d.LookBackFrames, maxChange, d.MaxPriceChange), false
}
if d.EnableMinThickness {