SPB Git

Repository Public

README.md 1.9 KB 25 lines markdown

1# har_rv_perp / 123**Hypothesis.** Realised volatility is forecastable from its own daily, weekly and longer averages (the HAR-RV4model of Corsi, 2009), better than from a single trailing window. Sizing a long/short trend position by the5FORECAST volatility, and standing aside when the forecast is far above normal, should give a steadier risk than6sizing by trailing volatility (`ma_trend_perp/1`).78**Mechanism.** Daily realised variance = sum of the 24 squared hourly log-returns of a day (days counted backwards9from the decision bar). Least squares, on the 50 days of the window, of the next day's variance on today's, the107-day mean and the 14-day mean (the "month" of the original model is shortened to 14 days because the venue only11serves about 208 days of hourly candles). The forecast, annualised, sets the size: `min(max_weight, (target_vol /12N) / forecast_vol)` of equity per asset, on the side of the trend (close above or below its 120-hour mean).13**Regime**: no position in an asset whose forecast volatility is more than 1.5 × its median daily volatility of the14window. One decision per day (the pipeline runs it with `--decision-every har_rv_perp=24`); the model does not15change within a day.1617**What would refute it.** A regression on about 35 daily points is weak: if the forecast is no better than the18trailing 7-day mean, this strategy is `ma_trend_perp` with a noisier size, and its results should be read that19way. Refuted if the realised volatility of the strategy is not steadier than that of `ma_trend_perp/1`, or if the20regime filter removes the days that made the money (large trends start with volatility above normal).21Volatility forecasting says nothing about direction: the side is a plain trend rule, and all the directional risk22of trend following remains.2324Parameters were written before any backtest on the Hyperliquid data and are not tuned on the test split.25
Files main
Menu

Theme