not pause notify
This commit is contained in:
parent
0b23e9f2f0
commit
79ae41c0cc
|
@ -36,9 +36,9 @@ exchangeStrategies:
|
|||
# - ETHUSDT
|
||||
# - SOLUSDT
|
||||
|
||||
interval: 1m
|
||||
nrInterval: 1m
|
||||
cciInterval: 5m
|
||||
interval: 15m
|
||||
nrInterval: 15m
|
||||
cciInterval: 15m
|
||||
atrInterval: 2h
|
||||
nrCount: 4
|
||||
cciWindow: 20
|
||||
|
|
|
@ -535,10 +535,10 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor qbtrade.OrderExecutor,
|
|||
}
|
||||
|
||||
if !s.isTradeTime(ctx) || s.isPauseTrade(ctx) {
|
||||
pauseMsg := fmt.Sprintf("暂停交易:总收益:%v, 暂停次数:%v, 暂停时间:%v; 暂停时间段:[%v, %v)",
|
||||
s.TotalProfit.Float64(), s.PauseTradeCount.Float64(), s.PauseTradeTime, s.TradeStartHour,
|
||||
s.TradeEndHour)
|
||||
qbtrade.Notify(pauseMsg)
|
||||
//pauseMsg := fmt.Sprintf("暂停交易:总收益:%v, 暂停次数:%v, 暂停时间:%v; 暂停时间段:[%v, %v)",
|
||||
// s.TotalProfit.Float64(), s.PauseTradeCount.Float64(), s.PauseTradeTime, s.TradeStartHour,
|
||||
// s.TradeEndHour)
|
||||
//qbtrade.Notify(pauseMsg)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user