diff --git a/config.json.example b/config.json.example index 6a4f20cd6..5b98a505a 100644 --- a/config.json.example +++ b/config.json.example @@ -4,6 +4,7 @@ "stake_amount": 0.05, "fiat_display_currency": "USD", "dry_run": false, + "trailing_stop": false, "unfilledtimeout": 600, "bid_strategy": { "ask_last_balance": 0.0 diff --git a/config_full.json.example b/config_full.json.example index 77ef0faa0..570276e77 100644 --- a/config_full.json.example +++ b/config_full.json.example @@ -5,6 +5,7 @@ "fiat_display_currency": "USD", "dry_run": false, "ticker_interval": "5m", + "trailing_stop": true, "minimal_roi": { "40": 0.0, "30": 0.01, diff --git a/freqtrade/analyze.py b/freqtrade/analyze.py index 535e5c310..c1bae8303 100644 --- a/freqtrade/analyze.py +++ b/freqtrade/analyze.py @@ -205,11 +205,11 @@ class Analyze(object): # just for debugging if 'trailing_stop' in self.config and self.config['trailing_stop']: - print( + logger.warning( "HIT STOP: current price at {:.6f}, stop loss is {:.6f}, " "initial stop loss was at {:.6f}, trade opened at {:.6f}".format( current_rate, trade.stop_loss, trade.initial_stop_loss, trade.open_rate)) - print("trailing stop saved us: {:.6f}".format(trade.stop_loss - trade.initial_stop_loss)) + logger.debug("trailing stop saved us: {:.6f}".format(trade.stop_loss - trade.initial_stop_loss)) logger.debug('Stop loss hit.') return True