The FIR (finite impulse response) Hamming is an indicator that filters the data to find the balance between the simple moving average's filtering capability and its lagging. This filter uses a weighting system for data points: the first and the last data point are by default assigned a weight equal to sin10° (so-called pedestal), and data points between them are assigned weights consistent with sinewave half-cycle, peaking in the middle of the indicator length. Thus, most of the weight is given to data around the middle of the indicator's length, and least of the weight is given to data points at the beginning and the end of it. 

The calculation of this filter is consistent with the formula of the Hamming window function.

Input Parameters

Parameter Description
price The price to which the FIR Hamming is to be applied.
length The length of the FIR Hamming filter.
pedestal The weight given to the first and the last data point (in degrees).


Plot Description
Hamming The FIR Hamming plot.


FIR_Hamming with other windowing filters

*For illustrative purposes only. Not a recommendation of a specific security or investment strategy. 

  Past performance is no guarantee of future performance.