A new live-updating widget at the top of the blog's right-hand column forecasts the likely timing of upcoming turning points in S&P 500 futures (ES), displayed on an hourly bar chart (ET). Black bars represent historical prices; the blue line shows the forecast, with its solid portion fitted through the latest bar and its dashed portion extending approximately six weeks ahead. Green dates mark likely highs, red dates likely lows. The forecast identifies turning dates, not future price levels.
Dragging the vertical grey dashed slider across the chart
displays the exact date and time below the chart title.
The forecast line combines fourteen cycles that have repeatedly occurred in this market, ranging from approximately two days (51 hours) to six weeks (38.2 days). They were identified in the hourly closes after removing a straight-line trend, preventing the market's underlying rise or decline from being mistaken for a cycle. A spectrum of the detrended series was then calculated to identify candidate cycle lengths, with each spectral peak indicating a rhythm sufficiently prominent to stand out from neighboring frequencies.
Each candidate was isolated and evaluated individually. Its length was set to a whole number of hours and adjusted by one or two bars in either direction, retaining the alignment that produced the largest swing. A sine and cosine were then fitted at that length to measure the cycle independently. The Bartels test was applied to its most recent repetitions to assess phase consistency. A candidate qualified only if it had completed at least four repetitions and achieved a Bartels score of 50 or higher. Candidates within 4% of the same cycle length were consolidated, retaining the one with the larger swing. The surviving cycles were ranked by swing amplitude, and the fourteen strongest form the fixed composite now in use, as listed in the table below.
ES composite hourly cycles: Length (Hours/Days), detrended Swing Amplitude (Index Points), Strength (Amplitude/Length), Bartels Score, and Repetitions. Inclusion thresholds: Bartels ≥50 and at least four repetitions.
The Bartels score (0–100) divides the detrended series into successive one-cycle blocks, converts each into a phase-direction vector, and measures their alignment. Consistently aligned vectors produce a high score; randomly wandering phases cancel out. Chance alone yields approximately 63. The threshold of 50 rejects cycles with inconsistent timing but does not establish that they will persist. Calculations use the latest six months of hourly bars, approximately 3,000 hours of data. This provides sufficient history to establish even the longest cycle, at 916 hours (38.2 days), roughly corresonding to J.M. Hurst's nominal 40-Day Cycle, which appears approximately four to five times in the sample. A shorter lookback would leave too few repetitions to establish its timing reliably.
Although the widget displays around three months of historical prices and six weeks of projected cycles, all calculations use the full six-month sample. Every four hours, the data are refreshed and the forecast refitted to the latest prices, while the cycle lengths remain unchanged. Allowing the model to select new cycles after every swing may explain yesterday's movement but produce contradictory forecasts tomorrow. That approach was tested and proved unreliable. Retaining a fixed set of cycles while updating only their alignment provides a more consistent and independently testable forecast.
The line's amplitude does not represent future price. A higher forecast crest can still correspond to a lower market high; it indicates only that several cycles converge around that date. Once the date arrives, actual price action establishes whether the turn is higher or lower than the preceding one. News and the magnitude of the ensuing move remain outside the model. Its purpose is to identify turning dates in advance and provide a sufficiently stable forecast for subsequent verification.
This is a classical spectrum-based analysis, not a state-of-the-art forecasting model. The cycles are held at fixed lengths and constant amplitudes. For some cycles, the Bartels threshold of 50 falls below the approximately 63 expected under random phase relationships; passing this threshold therefore does not establish statistical significance or predictive reliability. A more stringent Bartels threshold, closer to 95, together with a minimum requirement of eight completed repetitions before a cycle is admitted into the forecast, would provide a more rigorous selection standard. Projected turning dates are also not retrospectively validated against the highs and lows that follow. A more advanced Kalman-filter-based harmonic forecasting model could allow cycle lengths and amplitudes to evolve, apply stricter statistical significance tests, and validate forecasts against subsequent price action.
However, implementing these enhancements would exceed the 2,000,000-byte Google Blogger theme-code limit for widgets. Within that constraint, the fixed fourteen-cycle composite represents the most practical and technically feasible implementation for this blog. Happy Thanksgiving!



.png)



































