OPEN-SOURCE SCRIPT

[RS]Detrended Price Oscilator System A

Updated
DPO with modified formula for percentual values for scale ability trend line and histogram, rest i leave to you to explore..
Release Notes
A Detrended Price Oscillator is a technical analysis indicator used to analyze the price of a financial instrument. It is a type of momentum indicator that shows the relationship between two moving averages of a security's price, with the aim of identifying potential overbought and oversold conditions. The indicator is calculated by subtracting the longer-term moving average from the shorter-term moving average, and then plotting the resulting difference as a line on a chart. The idea behind the indicator is that when the line is above zero, the security's price is relatively high compared to its moving averages, and may be considered overbought. Conversely, when the line is below zero, the security's price is relatively low compared to its moving averages, and may be considered oversold.
dpoMoving AveragesOscillatorsTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer