杀戮开关
当机器人达到某一性能阈值(可为正或负)时,自动停止机器人。此功能使用与 history 命令相同的性能计算方法。
Select your kill-switch mode (kill_switch_enabled/kill_switch_disabled)  >>>
At what profit/loss rate would you like the bot to stop? (e.g. -5 equals 5 percent loss) >>>
您可以通过以下两种方式随时重新配置此功能:
- 在 Hummingbot 中运行命令 config kill_switch_mode和/或config kill_switch_mode.kill_switch_rate。
- 使用文本编辑器编辑位于 hummingbot_conf文件夹中的conf_client.yml文件。
注意
在 Hummingbot 的早期版本(1.5.0 及以下)中,该文件名为 conf_global.yml。
请注意,当市场价格变动时,机器人的表现也会随之变化,并可能触发停机开关。例如,我们执行了 13 笔交易,其表现如下所示。
Inventory:
      Market Asset  Starting   Current  Net Delta Trade Delta
  0  binance   ETH   10.0000   11.0000     1.0000      3.0000
  1  binance  USDT  500.0000  297.1580  -202.8420   -610.6340
Markets:
      Market     Pair Start Price       End Price  Trades Trade Value Delta
  0  binance  ETHUSDT     203.913  202.7150000000      13  -2.48900000 USDT
Performance:
  Started: 2020-05-26 10:28:03
  Duration: 0 days 00:07:06
  Total Trade Value Delta: -2.489 USDT
  Return %: -0.0985 %
过了一段时间,最终价格从 202.715 变为 200.54,即使未进行更多交易,我们的机器人表现也随之改变。由于 kill_switch_rate 被设置为 -0.3,因此该策略将被停止。
Inventory:
      Market Asset  Starting   Current  Net Delta Trade Delta
  0  binance   ETH   10.0000   11.0000     1.0000      3.0000
  1  binance  USDT  500.0000  297.1580  -202.8420   -610.6340
Markets:
      Market     Pair Start Price       End Price  Trades Trade Value Delta
  0  binance  ETHUSDT     203.913  200.5400000000      13  -9.01400000 USDT
Performance:
  Started: 2020-05-26 10:28:03
  Duration: 0 days 02:09:13
  Total Trade Value Delta: -9.014 USDT
  Return %: -0.3598 %
