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 February 2019
|Name||Date||How to access||Official URL||Additional Info|
|FanEspo Big Competition (ERC20)||Limited||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|
|Athero Airdrop||As available||The IoT-Blockchain system Athero still has the airdrop open.||form||web|
|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)|
|Synchrotron / $STC Airdrop #12||30 weeks of airdrops (Airdrop #12 starts 4 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|
|Bethereum Photo Contest||Starts 22 February 2019||Bethereum, the betting platform on ETH, is running a new Twitter campaign. Reply to Bethereum's monthly tweet with a photo the our gaming platform interface shown in the most interesting place adding #BethereumAnywhere to enter the contest for 25,000 Bether tokens. Two winners are selected every month, at the end of the contest three top photos will be awarded 100,000 Bether each.||rules||web|
|DSTRA / $DST Airdrop #22||Biweekly, drop #22 runs from 25 Feb 2019||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|
|Agri Novus Bounty||As available||New blockchain-based project for organic supplies providers and customers. The team will pay out bounties for social media work.||more|
|Tratok Airdrop||February - March 2019||Tratok stands for Travel Token, it is a token of an application to make bookings for travel and hospitality. Follow the Tratok Project on their social media platforms and get 1000 TRAT for each approved action. Tokens distribute 20th March 2019.||join|
|Genes Token Airdrop (ERC20)||As available||A tokenized project for genome storage service on the blockchain. You get 5 GENES for commenting on Bitcointalk.||join||web|
|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|
|AllForCrypto (WAVES)||Ends March 2019||A WAVES project for eBay-style marketplace on the blockchain. Drops $20 worth of AFCT, plus they have updated their bounty campaign.||join drop||bounty|