Untitled
unknown
plain_text
7 months ago
252 B
4
Indexable
cash_price = prices.loc[current_date, cash_ticker]
cash_value = prev_cash_qty * cash_price
momentum_value = sum(
prev_portfolio[ticker] * prices.loc[current_date, ticker]
for ticker in prev_portfolio
)
total_aum = momentum_value + cash_value
Editor is loading...
Leave a Comment