mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 16:21:09 +00:00
pivotshort: print stopEMA protection
This commit is contained in:
parent
889318ddcb
commit
edc8c132d5
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user