-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.py
More file actions
33 lines (29 loc) · 1.53 KB
/
Copy pathconfig.example.py
File metadata and controls
33 lines (29 loc) · 1.53 KB
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
# ==============================================================================
# CONFIGURATION TEMPLATE
# ==============================================================================
# WARNING: Rename this file to 'config.py' and NEVER commit it to version control.
# Ensure 'config.py' is listed in your .gitignore file.
# ==============================================================================
# ---------------------------------------------------------
# INTERACTIVE BROKERS (IBKR) CONNECTION SETTINGS
# ---------------------------------------------------------
IB_HOST = "127.0.0.1"
IB_PORT = 7497 # 7497 for Paper Trading / 7496 for Live Trading in TWS
IB_CLIENT_ID = 1
# ---------------------------------------------------------
# TELEGRAM API SETTINGS
# ---------------------------------------------------------
TELEGRAM_BOT_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN_HERE"
TELEGRAM_CHAT_ID = "YOUR_TELEGRAM_CHAT_ID_HERE"
# ---------------------------------------------------------
# TRADING ASSETS / WATCHLIST
# ---------------------------------------------------------
# Generic names for public display.
ASSETS = ["ASSET_A", "ASSET_B", "ASSET_C"]
# ---------------------------------------------------------
# RISK MANAGEMENT PARAMETERS
# ---------------------------------------------------------
MAX_POSITION_SIZE = 1000 # Max USD value per trade
RSI_THRESHOLD_LOW = 20 # Dynamic position sizing (e.g. $200)
RSI_THRESHOLD_HIGH = 25 # Dynamic position sizing (e.g. $150)
EMA_PERIOD = 200 # Exponential Moving Average period for trend filter