added support for the adjusteable stop loss, if we made profit. Implementation based on the cocnept: use positive stop loss, if made profit is > 0

This commit is contained in:
Gert Wohlgemuth
2018-05-13 15:17:50 -07:00
parent 5cf72b5d5f
commit f8da1bf5a6
3 changed files with 17 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ class Trade(_DECL_BASE):
else:
logger.debug("keeping current stop loss")
print(
logger.debug(
"{} - current price {:.8f}, bought at {:.8f} and calculated "
"stop loss is at: {:.8f} initial stop at {:.8f}. trailing stop loss saved us: {:.8f} "
"and max observed rate was {:.8f}".format(