OPEN-SOURCE SCRIPT
2 EMA Cloud

2 EMA Cloud is a clean, lightweight overlay indicator that plots two configurable EMAs (default 14 and 150) and fills the space between them to form an easy-to-read trend “cloud.” It also marks bullish and bearish EMA crossovers with configurable triangle signals and includes built-in alert conditions for both crossover directions.
Features
Two adjustable EMAs (default 8 & 13)
Cloud fill between EMAs for quick trend/phase visibility
Crossover signals
Bullish: EMA1 crosses above EMA2
Bearish: EMA1 crosses below EMA2
Signal sizing control (Tiny → Huge)
Visual modes / themes for cloud + signals:
Classic, Monochrome, Heatmap, Pastel, Dark, Neon (1/2), BlueScale, RedScale, GreenScale, PriceBased
Alerts included
“Bullish EMA Crossover”
“Bearish EMA Crossover”
How to use
Use the cloud + EMA alignment to gauge directional bias and momentum.
Use crossover markers as potential trend-change or continuation triggers depending on your strategy.
Switch to PriceBased color mode for simple visual confirmation (green when price is above EMA2, red when below).
Notes / Limitations
This is an EMA-based tool and will lag by design, especially in choppy markets.
Signals are not trade recommendations; consider using higher-timeframe context and risk management.
Inputs: EMA periods, show/hide EMA lines, cloud transparency, color mode, crossover signal size.
Features
Two adjustable EMAs (default 8 & 13)
Cloud fill between EMAs for quick trend/phase visibility
Crossover signals
Bullish: EMA1 crosses above EMA2
Bearish: EMA1 crosses below EMA2
Signal sizing control (Tiny → Huge)
Visual modes / themes for cloud + signals:
Classic, Monochrome, Heatmap, Pastel, Dark, Neon (1/2), BlueScale, RedScale, GreenScale, PriceBased
Alerts included
“Bullish EMA Crossover”
“Bearish EMA Crossover”
How to use
Use the cloud + EMA alignment to gauge directional bias and momentum.
Use crossover markers as potential trend-change or continuation triggers depending on your strategy.
Switch to PriceBased color mode for simple visual confirmation (green when price is above EMA2, red when below).
Notes / Limitations
This is an EMA-based tool and will lag by design, especially in choppy markets.
Signals are not trade recommendations; consider using higher-timeframe context and risk management.
Inputs: EMA periods, show/hide EMA lines, cloud transparency, color mode, crossover signal size.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.