1996issue C111-2
Constructing phase from a dominant-cycle sine and cosine pair
Phase is assembled from one-cycle cosine and sine sums. After a quadrant correction and a sine-wave reference, the wrapped angle is the phase reading, and the same sums also identify a linear slope.
- Over one dominant cycle, a cosine-weighted sum of prices forms the real component and a sine-weighted sum over the same window forms the imaginary component.
- The first angle is the arctangent of the imaginary component divided by the real component. A quadrant correction and a sine-wave reference then place the phase angle, which is wrapped to one full turn and expressed in degrees.
- If the absolute real component is not greater than 0.001, the arctangent step is skipped and the angle is set to a signed quarter-turn from the sign of the imaginary component.
- The same one-cycle sums yield 180 degrees on a linear rising slope and 0 degrees on a linear falling slope, so constructed phase can mark a trend as well as a cycle.
One-cycle sums form the phasor
Phase construction sums price against a cosine over one dominant cycle to form a real component and against a sine over the same window to form an imaginary component. The real component is the horizontal part of that phasor. The imaginary component is the vertical part.
The dominant cycle is the bar length that sets both the summing window and the period of the sine and cosine weights. Without that length there is no pair to assemble and no phase angle to compute.
Correcting the first angle estimate
The first angle estimate is the arctangent of the imaginary component divided by the real component. That estimate places the result in the first or fourth quadrant.
If the real component is negative, a quadrant correction adds half a turn so the angle is moved out of the wrong half-plane. A sine-wave reference then adds a quarter-turn so the cycle origin is referenced to a sine wave. After those corrections the angle is wrapped into one full turn and, when computed in radians, converted to degrees. The wrapped reading is the phase angle.
If the absolute real component is not greater than 0.001, the arctangent step is skipped. The angle is set to a signed quarter-turn from the sign of the imaginary component.
A required dominant-cycle length
Dominant-cycle length is a required input. It may be a fixed default of 15 bars, counted between notable highs or lows, or remeasured on every bar. The same length governs the cosine weights, the sine weights, and the summing window.
The same sums on a linear slope
The same one-cycle sums yield 180 degrees on a linear rising slope and 0 degrees on a linear falling slope. Constructed phase can mark a trend as well as a cycle because those identities are properties of the assembled pair.
All readings on this track · 26 readings
- 1982Critiquing Fourier, Elliott, and seasonal commodity models
- 1982Evaluating half-hour crossovers with cycle priors and stops
- 1984Building moving-window spectral cycle forecasts
- 1988Fourier cycles versus calendar seasonal regimes
- 1989Constructing analog cycle signatures from price lows
- 1990Curve fits fail the forecast test
- 1991Auditing moving-average length with Fourier spectra
- 1991Closed-form phase for dominant-cycle spectra
- 1993Evaluating windowed spectral forecasts of index turning points
- 1994Window length for moving-window spectral forecasts
- 1994Constructing WAMI power and phase spectra
- 1994Fourier-tuned momentum filter design
- 1994Aliasing, leakage, and dominant-cycle reads from sampled prices
- 1995Constructing indicator lookbacks from Fourier spectra
- 1996Constructing phase from a dominant-cycle sine and cosine pair
- 1999Sinusoidal pseudo-securities for indicator evaluation
- 2000Constructing dominant cycle length from Hilbert phase
- 2000Constructing adaptive channel breakouts from a measured cycle period
- 2005Embedding forex prices into a singular-spectrum forecast basis
- 2005Constructing recurrent forecasts from grouped spectral components
- 2007Constructing a dominant cycle from transformed Fourier spectra
- 2010Why cycle indicators fail when parameters shift
- 2019Constructing futures momentum as open-interest-scaled rate of change
- 2019Judging a dominant cycle and a trend filter by sample, lag and the move they keep
- 2020Constructing futures turnover time and urgency
- 2020Stock power ratio as a growth trend filter