Created
August 6, 2021 20:41
-
-
Save loomsen/32553bcf4a16e519fdb4704a54dbf2af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"coinbasepro": { | |
"api_url": "https://api.pro.coinbase.com", | |
"config": { | |
"base_currency": "ADA", | |
"quote_currency": "EUR", | |
"live": 0, | |
"verbose": 1, | |
"sellatloss" : 0, | |
"trailingstoploss" : -0.5, | |
"sellatresistance" : 1, | |
"disablebullonly" : 1, | |
"disablebuynearhigh" : 1, | |
"disablebuyobv" : 1, | |
"disablebuyelderray" : 1, | |
"disablelog" : 1, | |
"disabletracker" : 1 | |
}, | |
"api_key_file": "/home/nvarz/git-private/pycryptobot-configs/dev/keys/coinbasepro-ada-eur.key" | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# loss failsafe sell at trailing_stop_loss - ### CUSTOM EDITS 2021-08-06 ### | |
if self.app.trailingStopLoss() != None and change_pcnt_high < self.app.trailingStopLoss() and (self.app.allowSellAtLoss() or margin > 3 or margin < -15): | |
log_text = '! Trailing Stop Loss Triggered (< ' + str(self.app.trailingStopLoss()) + '%)' | |
Logger.warning(log_text) | |
self.app.notifyTelegram(self.app.getMarket() + ' (' + self.app.printGranularity() + ') ' + log_text) | |
return True | |
# "Changes to the criteria to only allow '--trailingstoploss' to be active when margin is above 3% or below -15%, but not in between, suggested by AP" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment