mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +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
|
// skip if the closed price is above the moving average
|
||||||
if closePrice.Float64() > lastMA {
|
if closePrice.Float64() > lastMA {
|
||||||
|
log.Infof("skip %s support closed price %f > last ma %f", s.Symbol, closePrice.Float64(), lastMA)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user