From eabeb87cebda001e72a94473688987dbe9a9822f Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Sun, 16 Jan 2022 10:00:13 +0900 Subject: [PATCH 1/5] add position_adjustment_enable to config_full.example --- config_examples/config_full.example.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config_examples/config_full.example.json b/config_examples/config_full.example.json index 81a034a21..595048191 100644 --- a/config_examples/config_full.example.json +++ b/config_examples/config_full.example.json @@ -177,5 +177,6 @@ "strategy": "SampleStrategy", "strategy_path": "user_data/strategies/", "dataformat_ohlcv": "json", - "dataformat_trades": "jsongz" + "dataformat_trades": "jsongz", + "position_adjustment_enable": false } From acda9571d1e8a0c2615b3f3b600da405b3d46371 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Sun, 16 Jan 2022 19:10:32 +0900 Subject: [PATCH 2/5] Revert "add position_adjustment_enable to config_full.example" This reverts commit eabeb87cebda001e72a94473688987dbe9a9822f. --- config_examples/config_full.example.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config_examples/config_full.example.json b/config_examples/config_full.example.json index 595048191..81a034a21 100644 --- a/config_examples/config_full.example.json +++ b/config_examples/config_full.example.json @@ -177,6 +177,5 @@ "strategy": "SampleStrategy", "strategy_path": "user_data/strategies/", "dataformat_ohlcv": "json", - "dataformat_trades": "jsongz", - "position_adjustment_enable": false + "dataformat_trades": "jsongz" } From edd2ea369985485247d7b333b2f14052eb9bde2e Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Mon, 17 Jan 2022 10:57:10 +0900 Subject: [PATCH 3/5] Update rpc_manager.py --- freqtrade/rpc/rpc_manager.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/freqtrade/rpc/rpc_manager.py b/freqtrade/rpc/rpc_manager.py index 9f62b9e23..b0b6189dd 100644 --- a/freqtrade/rpc/rpc_manager.py +++ b/freqtrade/rpc/rpc_manager.py @@ -85,6 +85,7 @@ class RPCManager: timeframe = config['timeframe'] exchange_name = config['exchange']['name'] strategy_name = config.get('strategy', '') + pos_adjust_enabled = 'On' if config['position_adjustment_enable'] else 'Off' self.send_msg({ 'type': RPCMessageType.STARTUP, 'status': f'*Exchange:* `{exchange_name}`\n' @@ -92,7 +93,8 @@ class RPCManager: f'*Minimum ROI:* `{minimal_roi}`\n' f'*{"Trailing " if trailing_stop else ""}Stoploss:* `{stoploss}`\n' f'*Timeframe:* `{timeframe}`\n' - f'*Strategy:* `{strategy_name}`' + f'*Strategy:* `{strategy_name}`\n' + f'*Position adjustment:* `{pos_adjust_enabled}`' }) self.send_msg({ 'type': RPCMessageType.STARTUP, @@ -104,4 +106,4 @@ class RPCManager: self.send_msg({ 'type': RPCMessageType.STARTUP, 'status': f'Using Protections: \n{prots}' - }) + }) \ No newline at end of file From f9a935b9a3399ef620700c7d303c7a4746ffd462 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Mon, 17 Jan 2022 16:37:06 +0900 Subject: [PATCH 4/5] Update rpc_manager.py --- freqtrade/rpc/rpc_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/rpc/rpc_manager.py b/freqtrade/rpc/rpc_manager.py index b0b6189dd..af19d72f2 100644 --- a/freqtrade/rpc/rpc_manager.py +++ b/freqtrade/rpc/rpc_manager.py @@ -92,9 +92,9 @@ class RPCManager: f'*Stake per trade:* `{stake_amount} {stake_currency}`\n' f'*Minimum ROI:* `{minimal_roi}`\n' f'*{"Trailing " if trailing_stop else ""}Stoploss:* `{stoploss}`\n' + f'*Position adjustment:* `{pos_adjust_enabled}`\n' f'*Timeframe:* `{timeframe}`\n' - f'*Strategy:* `{strategy_name}`\n' - f'*Position adjustment:* `{pos_adjust_enabled}`' + f'*Strategy:* `{strategy_name}`' }) self.send_msg({ 'type': RPCMessageType.STARTUP, From 9c9c9f017156b85377ec9fbc5a87b22209c70406 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 17 Jan 2022 20:00:35 +0100 Subject: [PATCH 5/5] Readd trailing white line --- freqtrade/rpc/rpc_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/rpc/rpc_manager.py b/freqtrade/rpc/rpc_manager.py index af19d72f2..d97d1df5f 100644 --- a/freqtrade/rpc/rpc_manager.py +++ b/freqtrade/rpc/rpc_manager.py @@ -106,4 +106,4 @@ class RPCManager: self.send_msg({ 'type': RPCMessageType.STARTUP, 'status': f'Using Protections: \n{prots}' - }) \ No newline at end of file + })