Mi piacerebbe leggere...

Implementazione in pine di un singolo tono in goertzel (cache)
This function implements the Goertzel algorithm (for integer N). The Goertzel algorithm is a technique in digital signal processing (DSP) for efficient evaluation of the individual terms of the discrete Fourier transform ( DFT ). In short, it measure the power of a specific frequency like one bin of a DFT , over a rolling window (N) of samples. Here you see an input signal that changes frequency and amplitude (from 7 bars to 17). I am running the indicator 3 times to show it measuring both frequencies and one in between (13). You can see it very accurately measures the signals present and their power, but is noisy in the transition. Changing the block len will cause it to be more responsive but noisier.