PROTECTED SOURCE SCRIPT

Dynamic Regression Divergence (DRD)

106
The Dynamic Regression Divergence (DRD) indicator is an adaptive oscillator designed to assess the deviation of the current price from its expected trend, as determined by linear regression. It calculates a regression line over a specified period and measures the difference between the actual price (e.g., the closing price) and the regression value, normalizing this deviation by the current market volatility (using standard deviation). The resulting value is displayed as an oscillator oscillating around zero.

Signals:
– When the oscillator exceeds a positive threshold (e.g., +1.5 standard deviations), it may indicate overbought conditions and a potential trend reversal to the downside.
– Conversely, when the oscillator falls below a negative threshold (e.g., -1.5 standard deviations), it signals oversold conditions and a possible reversal to the upside.
Advantages:
– Dynamic adaptation to changing market volatility.
– Simplicity of implementation using basic mathematical functions in Pine Script.
– A unique combination of trend analysis and normalized divergence measurement, helping traders identify moments of abnormal price behavior.

Индикатор Dynamic Regression Divergence (DRD) – это адаптивный осциллятор, разработанный для оценки отклонения цены от ожидаемой тенденции, полученной с помощью линейной регрессии. Он рассчитывает регрессионную линию на выбранном периоде и измеряет разницу между фактической ценой (например, ценой закрытия) и значением регрессии, нормируя её на основе текущей волатильности (с использованием стандартного отклонения). Полученное значение отображается в виде осциллятора, колеблющегося вокруг нуля.

Сигналы:
– Если осциллятор значительно превышает положительный порог (например, +1,5 стандартных отклонений), это может указывать на перекупленность и потенциальный разворот вниз.
– Если осциллятор опускается ниже отрицательного порога (например, -1,5 стандартных отклонений), это сигнализирует о перепроданности и возможном развороте вверх.
Преимущества:
– Динамичная адаптация к изменяющейся волатильности рынка.
– Простота реализации с использованием базовых математических функций Pine Script.
– Уникальное сочетание трендового анализа и нормировки отклонений, позволяющее трейдерам выявлять моменты аномального поведения цены.

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.