OPEN-SOURCE SCRIPT
ATR-Scaled Deviation Oscillator

ATR-DevOsc is a custom momentum-and-volatility adaptive oscillator that scales N-bar price momentum by its rolling deviation and then reacts dynamically to sudden ATR spikes. By shrinking the deviation window when true volatility surges, it amplifies extreme moves—making medium-term trend shifts and deep drawdowns far more likely to breach your predefined thresholds.
Key features include:
• configurable momentum length and separate deviation length for precise control over look-back periods
• ATR Reaction Multiplier to tune how strongly sudden volatility spikes contract the deviation, boosting oscillator amplitude during extreme moves
• independent upper and lower threshold inputs for clear long/short signal definitions
• integrated candle-coloring overlay to immediately visualize trend state on your price chart
• built-in alert conditions for both oscillator-threshold crossovers and ATR-reactive triggers
This indicator is particularly useful for swing traders seeking medium-term entry and exit points in highly volatile markets like BTC. It combines normalized momentum readings with true volatility feedback, so large drawdowns or breakouts generate unmistakable signal events while routine noise stays filtered.
Note: ATR-DevOsc is provided “as is” without formal robustness or optimization testing. Past performance is not indicative of future results; use in live trading only after sufficient back-testing and validation.
Key features include:
• configurable momentum length and separate deviation length for precise control over look-back periods
• ATR Reaction Multiplier to tune how strongly sudden volatility spikes contract the deviation, boosting oscillator amplitude during extreme moves
• independent upper and lower threshold inputs for clear long/short signal definitions
• integrated candle-coloring overlay to immediately visualize trend state on your price chart
• built-in alert conditions for both oscillator-threshold crossovers and ATR-reactive triggers
This indicator is particularly useful for swing traders seeking medium-term entry and exit points in highly volatile markets like BTC. It combines normalized momentum readings with true volatility feedback, so large drawdowns or breakouts generate unmistakable signal events while routine noise stays filtered.
Note: ATR-DevOsc is provided “as is” without formal robustness or optimization testing. Past performance is not indicative of future results; use in live trading only after sufficient back-testing and validation.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。