OPEN-SOURCE SCRIPT

MACD Pseudo Super Smoother [MACDPSS]

The MACD Pseudo Super Smoother (MACDPSS) is a variation of the classic Moving Average Convergence Divergence (MACD) indicator. It utilizes the Pseudo Super Smoother (PSS) filter, a Finite Impulse Response (FIR) filter, to smooth both the MACD line and the signal line, providing a potentially refined representation of momentum compared to the traditional MACD which typically uses Exponential Moving Averages (EMAs).

The PSS, inspired by the Super Smoother filter (an Infinite Impulse Response (IIR) filter), aims to reduce noise while minimizing lag. The MACDPSS leverages this FIR implementation to create a unique MACD variant. The core concept of MACD, which involves analyzing the relationship between two moving averages of different lengths to identify momentum shifts, remains intact.

Filter Types and Customization

The MACDPSS offers independent control over the smoothing applied to the MACD line and the signal line through two "Filter Style" inputs:
  • Oscillator MA Type: This setting determines the filter type used to calculate the fast and slow moving averages that form the basis of the MACD line.
  • Signal Line MA Type: This setting controls the filter type used to smooth the MACD line, generating the signal line.

Each of these settings allows a choice between two distinct PSS filter types:
  • Type 1: Provides a smoother output with a more gradual response, characterized by greater attenuation of high-frequency components.
  • Type 2: Exhibits increased reactivity, allowing for a faster response to shifts in momentum, but with a potential for overshoot.

This dual-filter approach provides flexibility in tailoring the indicator's responsiveness and smoothness to individual preferences and specific market conditions. The user can, for example, choose a smoother Type 1 filter for the MACD line and a more reactive Type 2 filter for the signal line, or vice-versa.

Calculations

The MACDPSS calculates the MACD line by subtracting the slow moving average from the fast moving average, both derived using the PSS filter with the selected "Oscillator MA Type." The signal line is then calculated by applying the PSS filter with the selected "Signal Line MA Type" to the MACD line. The histogram represents the difference between the MACD line and the signal line.

Interpretation

The interpretation of the MACDPSS is similar to the standard MACD. Crossovers between the MACD line and the signal line, the position of the MACD line relative to the zero line, and the slope and direction of the histogram are all used to gauge momentum and potential trend changes.

Disclaimer

The MACDPSS, while inspired by the Super Smoother, utilizes a distinct FIR approximation (the PSS). Therefore, its behavior will not perfectly mirror that of a MACD calculated using IIR filters. The PSS is designed to be a rough approximation. This indicator should be used in conjunction with other technical analysis tools, and users should be aware of the inherent differences between FIR and IIR filter characteristics when interpreting the indicator's signals. Like any moving average based indicator, the MACDPSS is a lagging indicator, although it tries to improve it. The novelty of this indicator comes from applying a unique FIR filter to a classic momentum oscillator in a configurable way.
Centered OscillatorsehlerFIRMoving AveragesOscillators

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?


他のメディア:

免責事項