FourC

4C Moving Avg Cloud

FourC 已更新   
This indicator plots 2 moving averages with a cloud filling the area between the two.
It has the unique ability to choose between multiple moving average types, AND also paints the average based on slope direction, all in one indicator.

Most of the available moving average cloud indictors only allow one type of moving average for both averages together (e.g. 21 EMA with 200 EMA; or 21 SMA with 200 SMA)
The 4C Moving Avg Cloud features the ability to choose a different average type for each of the moving averages, and can be mixed and matched (e.g. 21 EMA with 200 SMA; or 21 RMA with 200 EMA; etc...)
Offers a selection for each of the moving averages to choose between: EMA, SMA, RMA, WMA
Credit: Some aspects of this part of the 4C moving avg cloud indicator were adapted from the "Best Cloud All MA" indicator @author=Daveatt

Another unique aspect of this moving avg cloud indicator is that is paints the moving average lines based on slope direction.
If the slope direction of the avg is up, it is painted one color, and if the avg is sloping down, it is painted another color (default: red).
This slope coloring is based on a 1 period lookback, and cant be adjusted.

版本注释:
This update adds a new feature that shades the cloud a different color when the moving averages get spread far apart in a "wide state".
Oliver Velez uses the 20 and 200 moving averages, and the relative distance between the 2 averages can be a very good guide as to the 'room' an instrument has to move.
A wide state between moving averages can signal that a move could be getting extended, or even have the potential to reverse.
The indicator now looks at a hidden Keltner Channel of the long period moving average, and when the short period avg is outside of the Keltner Channel, it shades the cloud a different color in that area.
The default 'wide state' settings on this indicator are set for 2min charts with the 21ema and 200sma, with a Keltner Channel multiplier of 8.
It is recommended that you look at your preferred time frames and moving avgs, and determine which Keltner multiplier works best for you. This can be done by looking through charts of your preferred settings, and note where price with the 2 moving averages were extended apart, and then price reversed. It is in those areas that the shading should be different. Please see the attached screenshot for reference.
The new feature can be turned on/off.
版本注释:
Bug Fix for settings toggle "Show Wide State Cloud Shading"
版本注释:
2/27/23
Added a third moving average that can be toggled on/off.
The third moving average also is colored by slope direction.
The third moving average is se as the 8 ema by default.
版本注释:
2/28/23 Fixed bug from recent script changes
开源脚本

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

免责声明

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

想在图表上使用此脚本?