mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix format
This commit is contained in:
parent
c6f1f58b98
commit
fea95d1633
|
@ -172,7 +172,7 @@ func (d *KLineDetector) Detect(e *KLineEvent, tradingCtx *TradingContext) (reaso
|
||||||
}
|
}
|
||||||
|
|
||||||
if NotZero(d.MaxMaxPriceChange) && maxChange > d.MaxMaxPriceChange {
|
if NotZero(d.MaxMaxPriceChange) && maxChange > d.MaxMaxPriceChange {
|
||||||
return fmt.Sprintf("exceeded max price change %f > %f", d.LookBackFrames, maxChange, d.MaxMaxPriceChange), kline, false
|
return fmt.Sprintf("exceeded max price change %f > %f", maxChange, d.MaxMaxPriceChange), kline, false
|
||||||
}
|
}
|
||||||
|
|
||||||
if d.EnableMinThickness {
|
if d.EnableMinThickness {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user