Austincrypto7

Detrended Price Oscillator

BINANCE:CKBUSDT   CKB / TetherUS
Detrended Price Oscillator link here's what the indicator looks like also here is the script for it

//@version=4
study(title="Detrended Price Oscillator", shorttitle="DPO", format=format.price, precision=2, resolution="")
period_ = input(21, title="Length", minval=1)
isCentered = input(false, title="Centered")
barsback = period_/2 + 1
ma = sma(close, period_)
dpo = isCentered ? close - ma : close - ma
plot(dpo, offset = isCentered ? -barsback : 0, title="Detrended Price Oscillator", color=#43A047)
hline(0, title="Zero Line", color = #787B86)
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.