# Technical Studies Reference

### Detrended Oscillator - DiNapoli

This study calculates and displays a DiNapoli Detrended Oscillator for the data specified by the Input Data Input.

Let $$X$$ be random variable denoting the Input Data, and let $$X_t$$ be its value at Index $$t$$. Let $$n$$ be the Moving Average Length Input. We denote the Detrended Oscillator - DiNapoli for the given Inputs at Index $$t$$ as $$DO_t^{(DN)}(X,n)$$, and we compute it in terms of a Simple Moving Average for $$t \geq n$$ as follows.

$$DO_t^{(DN)}(X,n) = X_t - SMA_t(X,n)$$

This study also displays horizontal lines at levels determined by the Line 1 Value and Line 2 Value Inputs.