DetrendedPriceOsc

Description

The De-trended Price Oscillator compares the Close price to the prior moving average, eliminating cycles longer than the moving average. It is calculated by subtracting the Simple Moving Average from the selected price.

Input Parameters

Parameter Description
color norm length The number of bars used to calculate the color gradient.
length The number of bars used to calculate the average.
price The price used to calculate the averages.

Plots

Plot Description
DPO The De-trended Price Oscillator.
ZeroLine Zero level.

Example*

*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.