diff --git a/pkg/strategy/support/strategy.go b/pkg/strategy/support/strategy.go index 20134db03..bb76d09ff 100644 --- a/pkg/strategy/support/strategy.go +++ b/pkg/strategy/support/strategy.go @@ -289,6 +289,11 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se if s.TriggerMovingAverage != zeroiw { s.triggerEMA = standardIndicatorSet.EWMA(s.TriggerMovingAverage) + } else { + s.triggerEMA = standardIndicatorSet.EWMA(types.IntervalWindow{ + Interval: s.Interval, + Window: 99, // default window + }) } if s.LongTermMovingAverage != zeroiw {