pivotshort: print stopEMA protection

This commit is contained in:
c9s 2022-09-08 23:17:35 +08:00
parent 889318ddcb
commit edc8c132d5
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -199,6 +199,7 @@ func (s *FailedBreakHigh) Bind(session *bbgo.ExchangeSession, orderExecutor *bbg
// stop EMA protection
if s.StopEMA != nil {
if !s.StopEMA.Allowed(closePrice) {
bbgo.Notify("stopEMA protection: close price %f %s", kline.Close.Float64(), s.StopEMA.String())
return
}
}