mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
techsignal: add skip log
This commit is contained in:
parent
ebc61de946
commit
721d63bee0
|
@ -191,6 +191,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
|
||||
// skip if the closed price is above the moving average
|
||||
if closePrice.Float64() > lastMA {
|
||||
log.Infof("skip %s support closed price %f > last ma %f", s.Symbol, closePrice.Float64(), lastMA)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user