OpenHedgeDocs
Menu

Part III · S&P 500 Algorithmic Strategy

Section 029 Coming soon

Strategy Logic

One daily cycle measures the market, computes each factor, multiplies them into a target and trades only the meaningful difference.

MeasureClose, mark, funding, equityClassifyTrend regime factorRisk factorsVol, drawdown, eventsCombineMultiply and clampSafety checkLiquidation bufferTrade the gapOnly if > 10% of target
Figure 29The six steps of the daily cycle.

The strategy runs one main cycle per day, shortly after the US cash market closes, when the official index close is available and the perpetual is most liquid relative to the rest of the evening. The cycle has six steps:

  1. Measure. Read the daily close of the index, the perpetual mark and oracle prices, the last 72 hours of funding, and book equity.
  2. Classify the regime. Compare the close with its 200-day moving average and the slope of the 50-day average (section 30). Output: a trend factor of 1.0, 0.5 or 0.
  3. Compute risk factors. Volatility scale (section 31), drawdown throttle (section 34), funding guard (section 36), and weekend and event factors (sections 37–38).
  4. Combine. Multiply the base exposure by every factor and clamp the result to the 0–3× band (sections 32–33).
  5. Check safety. Verify that the resulting position keeps the liquidation buffer (section 39). If not, lower the target until it does.
  6. Trade the gap. If the target differs from the current exposure by more than 10% of the target, send orders; otherwise do nothing (section 35).

Outside the daily cycle, only risk-reducing events can trigger trades: a drawdown step, an event window opening, the Friday weekend cut, or a breached liquidation buffer. Exposure is never increased intraday except to restore a cut that was itself scheduled, such as the end of an event window.

Every cycle writes a record with all inputs, every factor and the resulting target, so any position can be reproduced from the record alone.

© 2026 HedgeFund DAO · OpenHedgeNot investment advice. Trading leveraged perpetuals can lose all deposited funds.