forked from MvantLoo/adx-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.config.py
51 lines (46 loc) · 1.4 KB
/
example.config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
TC_MODE = 'real'
TC_ACCOUNT_ID = ''
TC_API_KEY = ''
TC_API_SECRET = ''
BASE_URL = 'https://api.3commas.io'
EXCHANGE = 'FTX/BINANCE'
API_KEY = ''
SECRET_KEY = ''
SUB_ACCOUNT = ''
PAIRS_BLACKLIST = ['STEP-PERP', 'DMG-PERP', 'BRZ-PERP', 'PERP/USD', 'SRN-PERP', 'PRIV-PERP', 'SHIB-PERP', 'CUSDT-PERP']
SPOT_COINS = ['BTC', 'ETH', 'BNB']
MAX_OPEN_POSITIONS = 10
FUNDS_USAGE = 1
TF = 15 # Timeframe - always in minutes - Greater than 1 minute, less than 1 day.
ADX_LENGTH = 14
EMA_LENGTH = 20
EMA_SMOOTHING = 3
ADX_MIN_LONG = 15
ADX_MIN_SHORT = 15
DEAL_BOT_RATIO_WARNING = 0.75
CLOSE_DEALS_WITH_BOT = False # WARNING: Will close all open positions with no equivalent enabled bots.
EARLY_CLOSE = False
CLOSE_DEALS = False # Allow bot to close deals on opposite signals. Use False to manually rescue red bags.
# Bot data
QUOTE = 'USDT'
LONG_PREFIX = 'LongPy_'
SHORT_PREFIX = 'ShortPy_'
# 3Commas Bot Settings
BASE_ORDER_VOLUME = 5 #IN USD
TAKE_PROFIT = 2
SAFETY_ORDER_VOLUME = 1.5
MARTINGALE_VOLUME_COEFFICIENT = 1.11
MARTINGALE_STEP_COEFFICIENT = 0.91
MAX_SAFETY_ORERS = 12
ACTIVE_SAFETY_ORDERS_COUNT = 3
SAFETY_ORDER_STEP_PERCENTAGE = 3
LEVERAGE_CUSTOM_VALUE = 1
TRAILING = 1
TRAILING_DEVIATION = 0.1
# Used When Updating Bot Settings
STOP_LOSS_TYPE = 'stop_loss_and_disable_bot' # or stop_loss
STOP_LOSS_PERCENTAGE = 0
STOP_LOSS_TIMEOUT_ENABLED = False
STOP_LOSS_TIMEOUT_IN_SECONDS = 300
START_ORDER_TYPE = 'market'
MIN_VOLUME = 150