mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
improve messages
This commit is contained in:
parent
6740541bcd
commit
af8826a9e4
|
@ -210,13 +210,13 @@ func (s *Strategy) placeGridOrders(orderExecutor bbgo.OrderExecutor, session *bb
|
|||
|
||||
case types.SideTypeBuy:
|
||||
if ema7.Last() > ema25.Last()*1.001 && ema25.Last() > ema99.Last()*1.0005 {
|
||||
log.Infof("ema lines trend up, skip buy")
|
||||
log.Infof("all ema lines trend up, skip buy")
|
||||
continue
|
||||
}
|
||||
|
||||
case types.SideTypeSell:
|
||||
if ema7.Last() < ema25.Last()*(1-0.004) && ema25.Last() < ema99.Last()*(1-0.0005) {
|
||||
log.Infof("ema lines trend down, skip sell")
|
||||
log.Infof("all ema lines trend down, skip sell")
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user