INVITE-ONLY SCRIPT
Mis à jour

DiNapoli Detrended Oscillator (DOSC)

2 931
DiNapoli Detrended Oscillator (DOSC) is a custom indicator used for identifying OverBought (OB) and OverSold (OS) condition in markets.

This version of the indicator includes the following features:
  • Show/Hide the Oscillation Lines
  • Set Custom Oscillation Periods
  • Adapt OB/OS Factor Ratio to each Market
  • Show OB/OS Levels
  • Show Preceding OB/OS Cloud
  • Highlight OB/OS Condition in the Line
  • Show the Zero Line
  • Show Divergences (experimental)


For convenience it also includes Custom Alerts. Now it is possible to get alerts on:
  • OverBought Condition
  • Entering OverBought Condition
  • Exiting OverBought Condition
  • OverSold Condition
  • Entering OverSold Condition
  • Exiting OverSold Condition
  • Oscillator Cross
  • Bullish DOSC Strength
  • Bearish DOSC Strength
  • Possible Regular Divergence
  • Possible Regular Bullish Divergence
  • Possible Regular Bearish Divergence


This indicator is meant to be used by professional traders.
If you would like to subscribe, please send me a private message.
Notes de version
  • Added the possibility to customize the lookback period to better adapt to high/low volatilie markets.
  • Set default OB/OS triggers at 80%
Notes de version
Style fix
Notes de version
  • Improved method to calculate OB/OS states.
  • Detrended Parameters are now fully open for customization.
  • Overbought and Oversold trigger lines can be adjusted in percentage terms (i.e. 80%, 100% or 110%).
  • Ability to plot the Oscillator in multiple timeframes.
  • Divergences got improved.
  • Improved Volatility information along with the oscillator.
  • Simpler and more organized Input Tab.
  • Added informative tooltips to the main parameters.
  • Internal code updates.
Notes de version
  • To avoid misreadings when plotting the indicator from a custom timeframe, the label automatically gets displayed informing about that fact. This feature can be deactivated by unchecking the field "Force Label on Custom Timeframe".
  • All colors are customizable through the Input Tab, including lines, labels and text colors.
  • Input Tab reorganization.
Notes de version
Minor improvement at the internal mechanics
Notes de version
  • General code upgrade to display faster and use less computing resources.
  • Now the Oscillator needs just a few candles to start printing values, even when the lookup period is long. That makes it suitable to display in very high time frames where there are a few candles, or in new markets with a short history.
  • Improved options to customize the display of the Oscillator and the Histogram.
  • Reorganization of the Input Tab for a more intuitive customization.
  • New Feature: Now divergences can print not only over the oscillator, but over the price chart too.
  • General cleanup to reduce the number of values being displayed near the Indicator Name and in the Data Window.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.