possible fixed the decimal error, which in non dry runs crashes the whole bot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user