mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
strategy: fix wrong support condition
This commit is contained in:
parent
0511a0fde3
commit
934e4aa69f
|
@ -644,7 +644,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
return
|
||||
}
|
||||
|
||||
if s.triggerEMA != nil && closePrice.Float64() < s.triggerEMA.Last() {
|
||||
if s.triggerEMA != nil && closePrice.Float64() > s.triggerEMA.Last() {
|
||||
s.Notify("%s: closed price is above the trigger moving average line %f, skipping this support",
|
||||
s.Symbol,
|
||||
s.triggerEMA.Last(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user