Skip to content

Commit

Permalink
Update strategy_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
meldinman authored Dec 5, 2023
1 parent b292414 commit e700311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syscore/pandas/strategy_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def calculate_cost_deflator(price: pd.Series) -> pd.Series:
daily_returns = price_to_daily_returns(price)
## crude but doesn't matter
vol_price = daily_returns.rolling(180, min_periods=3).std().ffill()
final_vol = vol_price[-1]
final_vol = vol_price.iloc[-1]

cost_scalar = vol_price / final_vol

Expand Down

0 comments on commit e700311

Please sign in to comment.