OPEN-SOURCE SCRIPT

6/20 Cloud Flip

183
EMA Cloud 6/20
A clean, minimal EMA cloud built on the 6 and 20 period exponential moving averages. The cloud automatically flips between bullish and bearish coloring based on which EMA is on top — green when the 6 EMA is above the 20 EMA, red when it flips below.
Features:

Cloud fill between the 6 and 20 EMA, colored by trend direction
EMA lines hidden by default for a clean chart — toggle on anytime
Fully customizable: adjust both EMA lengths, cloud colors, and line colors from the settings panel
Lightweight, overlay-based, works on any timeframe or instrument

Useful as a quick visual read on short-term trend bias, or as a component alongside other trend/momentum tools.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.