The Detrended Price Oscillator strategy tool from TradingView is similar to a moving average, but easier to read.
The feature of today’s Script Spotlight is an older tool that is not groundbreaking or super sophisticated but it will make your chart reading faster.
It is called The Detrended Price Oscillator and it is very similar to a simple moving average.
If you don’t have a TradingView account yet, make one here for free.
If you care for high leveraged trading, you’re probably looking for BitMEX as well, keep your cool though.
Detrended Price Oscillator Strategy by HPotter
// Copyright by HPotter v1.0 30/03/2017 study(title="Detrended Price Oscillator", shorttitle="DPO") Length = input(14, minval=1) Series = input(title="Price", type=string, defval="close") hline(0, color=green, linestyle=line) xPrice = close xsma = sma(xPrice, Length) nRes = xPrice - xsma pos = iff(nRes > 0, 1, iff(nRes < 0, -1, nz(pos, 0))) barcolor(pos == -1 ? red: pos == 1 ? green : blue ) plot(nRes, color=red, title="Detrended Price Oscillator")
Parameters: Length (number of timespans to calculate over, default 14) and Price (candle value input, default Close).
What it does: It takes the price values over the chosen span and calculates a standard moving average from them. It then calculates the difference between the price and the SMA:
nRes = xPrice - xsma
The resulting line gets plotted below the chart and the chart’s candles are colored red or green depending on whether the value of the difference is positive or negative.
This is what the Detrended Price Oscillator, or DPO, looks like on a 1D BTCUSD chart. (I changed the default colors for clarity)
barcolor(pos == -1 ? orange: pos == 1 ? lime : aqua )
Does it work?
Of course it does work, there’s no rocket science in this one. You can use it on any timeframe and play with the length of the span.
On the 1W DPO gives an easy single-glance information about the market:
Even better, it is worth noting that the information you get from the color changes is equivalent to the cross of the Bollinger Band middle line on Bollinger Bands of the same length.
Here on a 1W chart for the lengths of 28:
For very long-term crypto charts this is actually more convenient that the bbands, if you are only looking for the position of the price relative to the mean.
You’ll notice I had to switch off the auto sizing on the chart because due to the periods of cryptocurrency bubbles, the lower and upper Bollinger bands shoot too far.
It won’t be a very difficult job to add candle coloring for the lower and upper Bollinger band crosses either, by the way.
The Detrended Price Oscillator is indeed similar to SMAs. The information is presented by coloring the chart candles though, which means you don’t have to squint your eyes at the chart when investigating trend cycles.
A marginal advantage but if you have a chart with no candle-coloring script in place, this would be a good choice.
This review uses a strategy published to the TradingView community.
BitMEX (10% fee off) @ bit.ly/melancholic-100x
TradingView (~ 50% off in BTC) @ bit.ly/tradingview-moon
Conbase (no offer but you still click this lol) @ bit.ly/plebtier
EthFinex (NEC token rebates for MM) @ bit.ly/ethfinex
TensorCharts @ bit.ly/tensor-charts
Upcoming and current airdrops 2019
|Name||Date||How to access||Official URL||Additional Info|
|MAN Airdrop to token holders||On 5 May 2019||With the mainnet launch of Matrix AI Network, total of 300,000 MAN to be airdropped to MAN holders who are holding 100 MAN or more on KuCoin. Snapshot runs on 5th of May at 6 PM UTC+8.||participate||announcement|
|Bethereum Prize Pool||Until 1 June 2019||Bethereum, the betting platform on ETH, is giving away free bets with the chance to win prizes from a pool worth 12M Bether. Upon signup you get enough points to make your bets, and you can wager on sports and esports.||join||web|
|FanEspo Big Competition (ERC20)||Limited||Fanespo is launching a new promo contest worth $40 in tokens. Details will pop up on you when you sign up on site. In general, the eSports platform FanEspo is giving away the total of $1.6 million of tokens in contests. Top winner's prize is over $100K worth. You need to have a FanEspo account, the tokens you get are beta but they will be transferred into real tokens upon launch. Estimated value is 1 USD per token.||details||make acct|
|Greencoin Airdrop||Until 15 May 2019||Greencoin Team has decided to give away 500 000 GNC worth 150k USD in total. Simple social media tasks - twitter follow, medium follow etc - each pays 200 GNC each.||join||web|
|BlockWage Airdrops + Bounties||Recurring||Platform for freelancers marketplace. Airdrops randomly announced via Discord, there's also the possibility of Masternodes.||join||web|
|DSTRA / $DST Discord Airdrop||Biweekly||DSTRA is PoS Scrypt Masternode coin with limited supply that will be used in DEX environment and marketplaces. There are airdrops every two weeks, users need to register via discord. Regular payouts verified.||discord||rules|
|HubrisOne Airdrop Round + Bounties||Weekly (16 weeks of airdrops, each weekly round starts on Tue)||HubrisOne is a UK financial service that offers personal and business crypto-friendly bank accounts and crypto-fiat cards. The easiest way to get the token is to download their banking app, which gives you 1000 tokens (10 USD) but there is a massive bounty campaign with weekly payouts. The work ranges from social media engagement or Bitcointalk signature to content creation, all must be properly reported. New round starts every Tuesday, but on other days they publish random airdrops on their Twitter.||airdrop, bounty||twitter (more drops)|
|BitcoinLux Bounty||From 28 March 2019||A project that requires you to install their wallet, be vigilant here. Drops coins for blog or social media shilling.||details||web|
|SiQs Bounty||As available||New smart-contract based marketplace for freelancers. Pre-alpha minimum product available, just as litepaper and wallets for Linux and Windows (sadly not paper, so be vigilant). Runs on PoS / MN. Join discord for airdrops.||discord||wallets|
|Synchrotron / $STC Airdrop #15||30 weeks of airdrops (Airdrop #15 starts 25 March 2019)||Hybrid PoW/PoS payment cryptocurrency. The team drops 72% of supply (18 MM coins) during 30 weeks of airdrop campaign; there is additional budget for bounties. The bounties are announced on discord server. Each airdrop round runs from Monday 10AM UTC to Friday 10PM UTC. Validation runs weekends and distribution Mondays. You need to download a $STC wallet.||drop rules in this thread||info|
|Cargo Coin Bounty||Weekly||Cargo Coin, a token for transport & logistics with an ICO past the soft cap by now, is having a weekly extensive bounty. It spans from simple retweets to YouTube reviews - make your bounty hunter account and pick your poison.||join||info|