You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another problem of using natural date is, the data range of every period varies, "t0 - self.lookback : t0" could give range from 3 to 5, this inconsistency is detrimental to subsequent calculations of inverse volatility.
The text was updated successfully, but these errors were encountered:
Hi
I'm testing WeighInvVol algo,and I found it uses natural date instead of bar date, for example, I have following data
the strategy is
according to code of WeighInvVol:
When t0 is '2024-01-01', the data range will be '2023-12-27':'2024-01-01', so the prc will be:
clearly, it uses natural date.
If use bar date, since '2024-01-02' is the first available date of January, so 't0' should be '2024-01-02', and the prc calculation could be:
then prc will be:
I think this make more sense.
Another problem of using natural date is, the data range of every period varies, "t0 - self.lookback : t0" could give range from 3 to 5, this inconsistency is detrimental to subsequent calculations of inverse volatility.
The text was updated successfully, but these errors were encountered: