TradingView
BarefootJoey
5 de Fev de 2023 02:42

Hurst Spectral Analysis OscillatorΒ 

Dow Jones Industrial Average IndexTVC

Descrição

β‹…
"It is a true fact that any given time history of any event (including the price history of a stock) can always be considered as reproducible to any desired degree of accuracy by the process of algebraically summing a particular series of sine waves. This is intuitively evident if you start with a number of sine waves of differing frequencies, amplitudes, and phases, and then sum them up to get a new and more complex waveform." (Spectral Analysis chapter of J M Hurst's book, Profit Magic)

Background: A band-pass filter or bandpass filter is a device that passes frequencies within a certain range and rejects (attenuates) frequencies outside that range. Bandpass filters are widely used in wireless transmitters and receivers. Well-designed bandpass filters (having the optimum bandwidth) maximize the number of signal transmitters that can exist in a system while minimizing the interference or competition among signals. Outside of electronics and signal processing, other examples of the use of bandpass filters include atmospheric sciences, neuroscience, astronomy, economics, and finance.

About the indicator: This indicator will accept float/decimal length inputs to display a spectrum of 11 bandpass filters. The trader can select a single bandpass for analysis that includes future high/low predictions. The trader can also select which bandpasses contribute to a composite model of expected price action.

10 Statements to describe the 5 elements of Hurst's price-motion model:
  • Random events account for only 2% of the price change of the overall market and of individual issues.
  • National and world historical events influence the market to a negligible degree.
  • Foreseeable fundamental events account for about 75% of all price motion. The effect is smooth and slow changing.
  • Unforeseeable fundamental events influence price motion. They occur relatively seldom, but the effect can be large and must be guarded against.
  • Approximately 23% of all price motion is cyclic in nature and semi-predictable (basis of the "cyclic model").
  • Cyclicality in price motion consists of the sum of a number of (non-ideal) periodic cyclic "waves" or "fluctuations" (summation principle).
  • Summed cyclicality is a common factor among all stocks (commonality principle).
  • Cyclic component magnitude and duration fluctuate slowly with the passage of time. In the course of such fluctuations, the greater the magnitude, the longer the duration and vice-versa (variation principle).
  • Principle of nominality: an element of commonality from which variation is expected.
  • The greater the nominal duration of a cyclic component, the larger the nominal magnitude (principle of proportionality).


Shoutouts & Credits for all the raw code, helpful information, ideas & collaboration, conversations together, introductions, indicator feedback, and genuine/selfless help:
πŸ† @TerryPascoe
πŸ… DavidF at Sigma-L, and @HPotter
πŸ‘ @Saviolis, parisboy, and @upslidedown
ComentΓ‘rios
pleasantCardin94082
β‹…
BarefootJoey
β‹…
Other default lengths to consider:

Hurst nominal model float/decimal averages: default with the indicator
Wall Street 10, 20, 50, 100, 200, etc
FIbonacci 1, 3, 5, 8, 13, 21, 34, 55, 89, 144, etc
Hurst straight-doubled round durations: 5, 10, 20, 40, 80, 160, 320, etc
Some method of Dominant Cycle Tuning for each range of the spectrum
Any of the above PLUS accounting for non-trading days, depending on the asset and timeframe
BarefootJoey
β‹…
Multiples of USB memory: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096
earnSmartAlgorithm
β‹…
Hi, thank you so much for the great indicator.
May I ask a very fundamental question that for every filter we applied on signal, there is delay, lag in laymen term. How can I factor in this into the indicator analysis.
BarefootJoey
β‹…
@earnSmartAlgorithm, this isnt a Butterworth filter so the lag is negligible. Dr John Ehlers and programmer Rick Way came up with the formula & code.
craigclavi102
β‹…
Sorry late to the show, but with your present software, is there a way to construct a composite model line, thanks in advance !!! absolutely great work !!! thanks !!!
BarefootJoey
β‹…
@craigclavi102, instead of a composite line, there is composite candles already built into the script. You just need to turn it on in the settings.
craigclavi102
β‹…
@BarefootJoey, thank you so much for your unbelievably quick response, fantastic work !!! I appreciate a true visionary !!! Enjoy your holidays !!!
bigbluecheese
β‹…
This is cool! Can you suggest a modification that would allow extending the cycle waves to the right, beyond the last bar?
Mais