dickymoore

MA cloud + divergence tension

dickymoore Mis à jour   
I noticed how well BTC often bounces off the 200 Moving Averages on the 4HR so started investigating ways of visualising the ongoing relationship between price and MAs.

Firstly, this draws a cloud which is made up of the SMA and the EMA, and it colours the cloud based on how far the price is diverging from the middle of the cloud. If the price is the most extreme distance out of the set (by default, the past 200) the cloud will be coloured dark blue. If it's the closest, it will be transparent.

I then looked at plotting these extremes. If the price passes the sensitivity threshold (default 99 - I will look at adding more sensitivity in the future), and by that I mean the price is more divergent than that percentage of other prices inspected in the range, it plots a circle - green if it's oversold, red if it's overbought.

These signal maximum tension between the price and the moving averages. Though when I say maximum, I'm only referring to the historic range! As you can see, often price diverges even further and so more signals are placed. But usually, this tension is resolved, either by the MA cloud moving towards the price or the price moving towards the cloud. With confluence from other indicators, these could be good points to start taking dollar cost averaging, or start taking profits.

Once that tension is released, and the price and cloud converge closely again, we get a blue "relief signal", which could signal that the price action is about to rebound again.

Please be careful with this, it's only for fun. Not investment advice!

If you have any suggestions, comments, criticism, I'd love to hear them,

Thanks

Notes de version:
simplified the detection of when price moves within the cloud sensitivity area.
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?