dickymoore

MA cloud + divergence tension

dickymoore 已更新   
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

版本注释:
simplified the detection of when price moves within the cloud sensitivity area.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?