nsharif0

Quadratic MA

The Quadratic Moving Average (QMA) is an advanced smoothing indicator that provides a smoother and more responsive moving average by applying the Weighted Moving Average (WMA) methodology in a unique, multi-layered approach. This indicator is especially useful for identifying trends in highly volatile markets where data points vary significantly.

Calculation:

The QMA is calculated by first determining a basic WMA over half the specified period and then modifying it by subtracting the WMA over the full period, effectively emphasizing recent price changes. This result is then re-smoothed using another WMA function applied over the square root of the specified length, providing a quadratic enhancement to the typical WMA.

Usage:

The QMA can be particularly effective in trend-following strategies. When the price moves above the QMA line, it may indicate a bullish trend, suggesting a potential buy signal. Conversely, if the price falls below the QMA line, it may signal a bearish trend, indicating a potential sell signal.

Settings:

Length: Controls the sensitivity of the QMA to price changes. A shorter length will make the QMA more responsive to price changes, while a longer length will smooth out the moving average further, potentially reducing the number of signals and noise.

Tips:

Combine the QMA with other forms of analysis, such as volume indicators or momentum oscillators, to confirm trends and refine trading signals.
Adjust the length parameter according to your trading style and the asset's volatility to optimize performance.
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?