-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
33 lines (28 loc) · 739 Bytes
/
config.py
File metadata and controls
33 lines (28 loc) · 739 Bytes
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 file for Trade Engine
Edit credentials before running
"""
# ===== Zerodha Credentials =====
API_KEY = "YOUR_KITE_API_KEY"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"
EXCHANGE = "NSE"
INTERVAL = "15minute"
# ===== Telegram Credentials =====
TELEGRAM_BOT_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
TELEGRAM_CHAT_ID = "YOUR_CHAT_ID"
# ===== Trading Parameters =====
MAX_PYRAMID_BUYS = 3
PRODUCT_TYPE = "MIS" # MIS for intraday, CNC for delivery
STATE_FILE = "state.json"
# ===== Strategy Parameters =====
EMA_SHORT = 20
EMA_LONG = 50
RSI_PERIOD = 14
RSI_THRESHOLD = 50
MACD_FAST = 12
MACD_SLOW = 26
MACD_SIGNAL = 9
ATR_PERIOD = 14
# ===== Timing =====
CHECK_INTERVAL_SECONDS = 300 # 5 minutes
ERROR_RETRY_SECONDS = 60 # 1 minute