-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
26 lines (19 loc) · 824 Bytes
/
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
# List of stock tickers to include in the portfolio
TICKERS = ['AAPL', 'MSFT', 'GOOG']
# Date range for historical data
START_DATE = '2020-01-01'
END_DATE = '2023-01-01'
# Initial investment amount in dollars
INITIAL_INVESTMENT = 1000
# Number of Monte Carlo simulations to run
NUM_SIMULATIONS = 10000
# Investment time horizon in days (e.g., 252 trading days in a year)
TIME_HORIZON = 252
# Risk-free rate for Sharpe Ratio calculation
RISK_FREE_RATE = 0.02
# Custom weights for each stock (should sum to 1)
# If None, equal weights are assumed unless optimization is used
WEIGHTS = None # Example: [0.4, 0.3, 0.3]
# Optimization settings
OPTIMIZE = True # Set to True to optimize the portfolio, False to use provided weights
BALANCED = False # Set to True for a balanced portfolio, False to maximize Sharpe Ratio