Skip to content

Instantly share code, notes, and snippets.

View ArtemioPadilla's full-sized avatar
🐒
Monkey see, monkey do

Artemio Padilla ArtemioPadilla

🐒
Monkey see, monkey do
View GitHub Profile
@ArtemioPadilla
ArtemioPadilla / PMSS.py
Created May 25, 2022 01:25
Portfolio Management Strategy Simulator
class PMSS:
"""
Portfolio Management Strategy Simulator
"""
def __init__(self, universe, initial_capital, risk_free, opt_tech, criteria, start, end,
t, window, freq = "W-MON", N = 10,
highest_better = True, track_allocations=False, expected_returns_fuct = annualize_returns,
show_closed_dates = False, max_weight = 0.95, min_weight = 0.01):
self.dates = pd.date_range(start = start, end=end, freq=freq) # Candidate trade days
dates = self.dates
@ArtemioPadilla
ArtemioPadilla / PY0101EN-2-2-Lists.ipynb
Created December 27, 2019 23:19
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ArtemioPadilla
ArtemioPadilla / PY0101EN-2-1-Tuples.ipynb
Created December 27, 2019 22:17
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ArtemioPadilla
ArtemioPadilla / PY0101EN-1-1-Types.ipynb
Created December 14, 2019 00:29
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.