mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
show max change limit
This commit is contained in:
parent
7b4a2782bb
commit
332893c882
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user