OPEN-SOURCE SCRIPT
stelaraX - DPO

stelaraX – DPO
stelaraX – Detrended Price Oscillator (DPO) is a cycle-based indicator designed to remove long-term trend components from price action. By isolating short- to medium-term price cycles, it helps traders focus on market rhythm and cyclical turning points rather than overall trend direction.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation
stelarax.com
Core logic
The Detrended Price Oscillator subtracts a displaced simple moving average from the current price. This displacement shifts the moving average back in time, effectively removing the dominant trend component.
Key principles:
* the lookback period defines the dominant cycle length
* the moving average is shifted backward by half the period plus one
* values above zero indicate price above the detrended mean
* values below zero indicate price below the detrended mean
* oscillations highlight cyclical highs and lows
The DPO is not designed to follow trends but to analyze price cycles and mean reversion behavior.
Visualization
The script plots:
* the DPO line in a separate indicator pane
* green coloring when values are above zero
* red coloring when values are below zero
* a zero reference line for cycle symmetry
This presentation makes cyclical expansions and contractions clearly visible.
Use case
This indicator is intended for:
* identifying cyclical market highs and lows
* timing entries and exits in ranging markets
* analyzing mean reversion behavior
* confirming cycle-based divergences
* supporting non-trend-following and oscillation strategies
It works best when used independently from trend indicators or alongside regime filters.
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
stelaraX – Detrended Price Oscillator (DPO) is a cycle-based indicator designed to remove long-term trend components from price action. By isolating short- to medium-term price cycles, it helps traders focus on market rhythm and cyclical turning points rather than overall trend direction.
This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation
stelarax.com
Core logic
The Detrended Price Oscillator subtracts a displaced simple moving average from the current price. This displacement shifts the moving average back in time, effectively removing the dominant trend component.
Key principles:
* the lookback period defines the dominant cycle length
* the moving average is shifted backward by half the period plus one
* values above zero indicate price above the detrended mean
* values below zero indicate price below the detrended mean
* oscillations highlight cyclical highs and lows
The DPO is not designed to follow trends but to analyze price cycles and mean reversion behavior.
Visualization
The script plots:
* the DPO line in a separate indicator pane
* green coloring when values are above zero
* red coloring when values are below zero
* a zero reference line for cycle symmetry
This presentation makes cyclical expansions and contractions clearly visible.
Use case
This indicator is intended for:
* identifying cyclical market highs and lows
* timing entries and exits in ranging markets
* analyzing mean reversion behavior
* confirming cycle-based divergences
* supporting non-trend-following and oscillation strategies
It works best when used independently from trend indicators or alongside regime filters.
Disclaimer
This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.