Script Spotlight: Automatic Divergences - #CryptoTrading

Published in Crypto technical analysis · Labeled as ·

In this series we are picking scripts for technical analysis that recently popped up in the TradingView daily popular feed.

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.

PPO Divergence Alerts (PPOD)

Full script

PPOD is a script that plots labels under or above candles where a divergence on PPO occurred.

PPO or Price Oscillator is a technical indicator very similar to MACD. It is calculated the same way as MACD but it presents the final value as a percentage.

  • MACD takes the difference in values between those two Moving Averages and an EMA of those Moving Averages, then plots that difference between the two lines as a histogram.

  • PPO does the same but it then calculates a percentage. This makes value comparisons simpler over longer durations of time.

The PPOD script is this PPO Divergence script only re-styled so that it will plot labels instead of a line indicator below the chart. It can be rewritten for use with other oscillators.

Parameters: (lookback period to look for divergences, PPO fast line, PPO slow line, PPO signal line, PPO smoothing)

Does it work?

This is the PPOD indicator on 1D chart of BTCUSD on Bitfinex using the default settings: (55,12,26,9,2).

Here the strongest signals are the red and pink labels that signify a bearish and bullish divergence on that timeframe. The red and green arrows show where the PPO was overbought and oversold - it is an oscillator which means you can use similar patterns as you would with MACD or RSI.

We can see on 1D the PPOD caught the 20k top although only after two other bearish div alerts at range tops. It also registers the current bottom.

On 4H you can see it registers the recent 8400 top couple of candles after the fact, but then it prints another divergence on the bounce which ended up being a pivotal point. That’s not bad.

If you are a scalper, you will run into problems on short timeframes and on the 1W chart the overbought/oversold fits better than the actual divergences:

In both cases it is important to remember what divergences actually show: If a divergence happens, there is a mismatch between the price and the buy or sell momentum. That strengthens the potential for a reversal but it is not itself a trigger to trade on that reversal. Whether you find a divergence or not does depend a lot on your settings, and I don’t think the same settings will necessarily be suitable for all market conditions.

Now specifically to shorter timeframes - If the volatility is high, there will always be divergences. They show the price is overshooting, nothing else. The only actionable information to take from that is “maybe I should become a market maker”, I think. It means nothing for trades that are meant to last longer than a couple of minutes.

Divergences are not useless for scalpers and daytraders though. One good strategy is to start the day looking at 4H to see what will most likely be the dominant direction of the session. Some days it is better to primarily focus on quick longs, some days on quick shorts.

In the most basic way you could simply plot an MA to see whether the price is above or below it. Divergences can be used in a similar way for confirmation.

Removing the Lines Is NOT An Advantage

There is one problem I have with line indicators reduced to simple alerts though: You do not get to see whether your indicator settings are not complete rubbish.

Say, you are a scalper and want to use PPO Divergence alerts on 5M chart. You will load the chart, find that the default settings don’t fit and you will start tweaking them.

Maybe you will find that settings with very low smoothing and big difference between the fast and slow lines work best, and you decide to go with that. The alert script keeps printing the alerts just the same but you don’t know there is more noise than signal unless you plot the actual underlying line indicator with your settings.

Plotting a single symbol works much better with events that do not have development. You can do it nicely with “rektlines”: Find singular events that will trigger most of the bots - something like an MA cross, an Ichimoku TK cross, MACD cross. Calculate 10% and 5% level against the position of the bot and you have a level where the bot positions on 10x and 20x leverage will get liquidated.

In this kind of case plotting a single symbol is completely fine but I would not use PPO Divergence alerts only without also using the line indicator.

Better Alternative: The Adaptive RSI Divergences

Full script

I can recommend using scripts that will paint the divergence along with the underlying indicator, though. Looking for divergences is a pain.

You can use the PPOD but I prefer this Adaptive Divergences script which plots the actual div lines.

Also, this particular script is an implementation of John Ehlers’ Adaptive RSI. The length value is not specified by user, it adopts according to the price development. The script looks for price cycles and bases the length values on them which gives less false signals. Do try this one.

Category: Crypto technical analysis · Label: · Author: Altcointrading.net (contact author)

Want to *really* learn crypto charting & technical analysis?

Hate to break it to you, but there's no trading school, no neatly structured course and no simple how to.
Read our articles to get familiar with the tools, but try everything hands on. Trading will press your emotions, you can only really learn it as you go.

All the good crypto charting tools and platforms are accessible for FREE in either TradingView app or at Bitfinex. Just start!

Get TradingView Signup at Bitfinex

 

 

Last added to Crypto Airdrops, Bounties & Opportunities
Airdropped Token or Opportunity Airdrop Date About the airdrop Link
$DOT Polka Drop NFT Raffle Live Polka City is a contract-based Polkadot, DeFİ and, NFT cryptocurrency investment platform. They are running a raffle now where purchasing a ticket gets you chance to win an NFT art gallery that pays weekly yield and other commission-generating prizes. Cost of the ticket is 1000 POLC, the main prize generates 1041 POLC per week (50% APY). join
Searching for PIZZA MAN on Phemex Until 22 May (The BTC Pizza Day) To promote their new asset management service, Phemex is opening a quest to search for the og guy who spent 10K BTC on a pizza (Laszlo Hanyecz). They are going to offer him, and 100 winners, to get 1 day of interests on 10k BTC in the Phemex Earn Crypto asset management program. Earn Crypto promises up to 10% APY. Yearly compound rate of 10% translates to about 0.03% daily rate, which could earn up to 3 BTC during that single day. make account on phemex and submit gleam form
Binance to launch NFT marketplace June 2021 If you have not already, join Binance with referral code atnet10perc for 10% lifetime kickback. join
CoinBurp NFT Airdrop Until 7 May Coinburp drops BURP NFT tokens for easy social media follows. It is a governance and utility token and non-custodial NFT app. You gain 10 $BURP tokens for joining our community. gleam form
$ARN token airdrop Until 9 May ARN tokens up for grabs for a set of 8 easy social media tasks. join
$XYM Token giveaway on Latoken Until 10 May Complete simple social media tasks and get a chance to win 1000 XYM tokens ($230) in the giveaway on LATOKEN. join
SafeCovid huge marketing bounty Live SafeCovid is running a vast campaign for all types of content marketing. Blogs, videos, social media - there are categories for all types of content. Submissions need to be posted in bitcointalk thread and recorded into Google Spreadsheets. bitcointalk
Trade tokenized shares of Coinbase on FTX Open The FTX crypto derivative exchange, quickly gaining recognition in the crypto community, added tokenized trading of Coinbase IPO. Loads of other tokenized legacy assets already available. FTX does not require KYC until your total lifetime withdrawals reach 1000 USD. (More about FTX here). see the markets
PYR social media campaign March 14, 2021 for 6 Months till August 14 2021. PYR runs a long social media campaign. You need to engage in various social media channels without mentioning the bounty. Rules in the sign up form. form
Opportunity: Zero fees on DeFi tokens on Bitstamp Until end of May 2021 You can now trade ZRX, MKR, KNC, DAI and GUSD at Bitstamp. Aa a bonus this DeFi-focused batch of cryptocurrencies comes with zero trading fees until the end of May. If you have an old Bitstamp account laying about, might be worth a shot to trade or arbitrage there for a few weeks now. Bitstamp
Blockchain Space Telegram Bounty Until June 2021 Blockchain Space runs a Telegram activity bounty. The most active users will be paid 50 USDT every 15 days. info