INVITE-ONLY SCRIPT

Colored Stacked EMA Ribbon

This script is my interpretation of an idea from John Carter in his interview with Richard Moglen.

The idea of moving average ribbons or simply multiple moving averages has been around since moving averages were created. But many of these ideas, such as the Guppy Multiple Moving Averages focus on price closes above a moving average (or multiple moving averages).

In this version, the idea is that the EMAs are compared to each other from shortest to longest. In a completely bullish alignment, the EMAs are referred to as "stacked" in which, for example, the 8 EMA > 13 EMA, the 13 EMA > 21 EMA and so on. When the EMAs are "stacked" in a fully bullish alignment, the EMA cloud is filled green. When the EMAs are "stacked" in a fully bearish alignment, the EMA cloud is filled red.

In addition, I've colored the EMA lines themselves according to if they are rising (green) or falling (red) over a user inputted lookback. The default is "1" period, but it is adjustable. (Generally, I use "1" for the lookback.)

When the EMA lines flip from mixed (rising/falling) to all rising, a green triangle is drawn under the bar/candle. Similarly, when the EMA lines flip from mixed (falling/rising) to all falling, a red triangle is drawn over the bar/candle. This gives the user another potential entry in the context of a stacked EMA cloud. It also can give early signals for entry in a neutral cloud.

Candles/bars are colored according to the EMA cloud & EMA line status. So, for example, a bullish stacked EMA cloud (green) and all EMA lines green, will result in a bright green candle color. IF the cloud is green, but the EMA lines are mixed (red/green), this will result in a dark green candle. Similar logic applies to the bearish conditions which result in red (most bearish) or orange (still bearish) candle colors. IF the EMA cloud is neither bullishly stacked or bearishly stacked, then those candles will appear as gray (neutral).

There are many ways to use this script, but it excels in a trending market. John Carter often sets limit buys in an area near the 21D EMA in names that are trending & he wants to get in. The 13D EMA linewidth is set at 2 and the 21D EMA linewidth is set a 3 to easily identify this area. Now, you can "buy the dip" or "short the rip" within the context of a trending market (which the script identifies with green or red EMA clouds). Or you can wait for some confirmation via the green triangle (or something else like a candle stick pattern or trendline break). Remember to set stops in case price goes against you.

1 final note this is not a "magic bullet", but for a single indicator it does alot of work & personally I've found it to be very useful on multiple time frames. I do recommend combining it with volume (or a volume-based indicator).

Update #1: This updated version allows the user to adjust candle colors, forces the script to wait for bar closes on intraday charts (if conditions are met) before plotting triangles, and removes a link to YT. In addition, non-intraday charts (daily, weekly, etc) will flash a triangle intraday (if conditions are met) before updating completely at the close.
Exponential Moving Average (EMA)Moving AveragesTrend Analysis

仅限邀请脚本

仅限作者授权的用户访问此脚本,并且通常需要付费。您可以将其添加到收藏中,但是只有在向作者请求并获得许可之后,才能使用它。 请联系weeklystockcharts了解更多信息,或按照以下作者的说明操作。

TradingView不建议付费使用脚本,除非您100%信任作者并了解脚本的工作原理。在许多情况下,您可以在我们的社区脚本免费找到不错的开源替代方案。

作者的说明

Script is free. Just mention my YT channel name in your request & you're in. Thanks!

想在图表上使用此脚本?

警告:请在申请访问权限之前阅读

更多:

免责声明