Skip to content

Commit

Permalink
Update crypto-genie.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hadialaddin authored Dec 2, 2021
1 parent f425760 commit 2f2568c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions crypto-genie.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# Enforce Static Stop Loss at an exact ratio (not less not more) feature switch (True/False). Only exception is if position is in profit, it allows moving the SL to breakeven or profit.
# NOTE: It will always set the Stop Loss with Full (100%) position size. Set to "0.0" if you want to disable the feature for a specific asset in case the default is setup.
enforce_sl_static = True
enforce_sl_static = False
# Maximum Stop Loss % allowed (ratio of price difference, after leverage)
default_sl_static_cap_ratio = 15.0
# Use this to set custom Stop Loss % for specific asset pairs (override the default), you can add more pairs as you desire by adding a comma at the end and a new symbol
Expand All @@ -45,12 +45,15 @@

# Enforce Stop Loss Range feature switch (True/False). NOTE: You should only activate either the Static Stop Loss feature or this one, not both, to avoid issues.
# NOTE: It will always set the Stop Loss with Full (100%) position size. Set to "0.0" if you want to disable the feature for a specific asset in case the default is setup. If "Tp/SL on Selected Position" is used on the exchange, it will make sure to set 100% as well (it will add the remaining of the Stop Losses needed to fully Stop the position)
enforce_sl_range = False
enforce_sl_range = True
# Maximum Stop Loss % allowed (ratio of price difference, after leverage)
default_sl_range_cap_ratio = 20.0
default_sl_range_cap_ratio = 15.0
# Use this to set custom Stop Loss % for specific asset pairs (override the default), you can add more pairs as you desire by adding a comma at the end and a new symbol
override_sl_range_cap_ratio = {
"": 20.0,
"BTCUSDT": 0.0,
"SOLUSDT": 10.0,
"ETHUSDT": 10.0,
"XRPUSDT": 10.0
}

# Enforce Take Profits feature switch (True/False)
Expand Down

0 comments on commit 2f2568c

Please sign in to comment.