fix(docs/strategy-customization): remove superflous prints from example code

This commit is contained in:
Joe Schr 2021-03-03 22:10:08 +01:00
parent 32f35fcd90
commit d05acc30fa

View File

@ -211,13 +211,11 @@ class AwesomeStrategy(IStrategy):
relative_sl = self.custom_info[pair]['atr].iloc[ -1 ] relative_sl = self.custom_info[pair]['atr].iloc[ -1 ]
if (relative_sl is not None): if (relative_sl is not None):
print("Custom SL: {}".format(relative_sl))
# new stoploss relative to current_rate # new stoploss relative to current_rate
new_stoploss = (current_rate-relative_sl)/current_rate new_stoploss = (current_rate-relative_sl)/current_rate
# turn into relative negative offset required by `custom_stoploss` return implementation # turn into relative negative offset required by `custom_stoploss` return implementation
result = new_stoploss - 1 result = new_stoploss - 1
print("Result: {}".format(result))
return result return result
``` ```