You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
733 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#循环提醒配置不当
##循环配置不当的逻辑先去掉直接从4h kline自适应
# if avg_price_5min > price_stop_to_buy or avg_price_5min < price_stop_to_sell:
# print(f"交易对{config.symbol}:止损范围配置不当,恐难以成交,五分钟内平均价: {avg_price_5min}")
# self.config_error_counts+=1
# #15次循环提醒一次配置不当
# if self.config_error_counts%15 == 0:
# self.config_error_counts = 0
# utility.alert(f"交易对{config.symbol}:止损范围配置不当,恐难以成交,五分钟内平均价: {avg_price_5min}")
# else:
# self.config_error_counts = 0