OPEN-SOURCE SCRIPT
Cập nhật

EMA Cloud

1 279
EMA Cloud

Description
EMA Cloud is a clean, highly customizable indicator that visualizes the relationship between 8-period and 21-period moving averages as a dynamic cloud overlay. Perfect for identifying trends, momentum shifts, and potential entry/exit zones at a glance.

🔑 Key Features
Dual EMA Support – Choose between EMA or SMA for both moving averages
Visual Cloud Overlay – Shaded cloud between EMA 8 and EMA 21 with customizable colors:
🟢 Bullish Cloud (green) when EMA 8 > EMA 21
🔴 Bearish Cloud (red) when EMA 8 < EMA 21
Adjustable Parameters – Customize EMA lengths, line widths, and cloud transparency
Toggle Display Options – Show/hide the cloud or EMA lines independently
Comprehensive Alert System – Get notified on:
EMA 8 crossing above/below EMA 21
Price crossing above/below EMA 8
Price crossing above/below EMA 21

📈 How to Use
Trend Identification – Green cloud indicates bullish momentum; red cloud signals bearish momentum
Entry Signals – Look for cloud color changes (crossovers) as potential entry points
Support/Resistance – The EMA lines within the cloud can act as dynamic support/resistance levels
Confirmation Tool – Combine with price action or other indicators for confluence

⚙️ Settings
Setting Description
EMA Type EMA or SMA
EMA 8 & 21 Length Customizable period lengths
Cloud Transparency Adjust opacity (0-100%)
Line Width Thickness of EMA lines
Colors Fully customizable bullish/bearish colors
Alerts 6 configurable alert conditions

💡 Best Practices
Works on all timeframes and all assets (stocks, forex, crypto, futures)
Lower timeframes: Use for scalping and intraday trades
Higher timeframes: Ideal for swing trading and trend following
Combine with volume analysis for stronger signals
Phát hành các Ghi chú

  • Added Key Levels controls in Trading View/EMA Cloud.pine:
  • Show Yesterday High/Low/Close (single toggle)
  • Show Premarket High/Low (default off)
  • Show Monday High/Low (default off)
  • Key Level Line Style (Dotted / Regular)
  • Added level calculations for:
  • Yesterday high/low/close (YTH, YTL, YTC)
  • Premarket high/low (PMH, PML, session 0400-0930)
  • Most recent Monday high/low (MH, ML)
  • Added right-side key level lines using drawing objects:
  • Render near right edge (last bars), not full-chart historical plots
  • Per-level color coding
  • Dynamic line style via input (Dotted or Regular)
  • Added right-side labels for all key levels:
  • YTH, YTL, YTC, PMH, PML, MH, ML
  • Increased label size from tiny to small
  • Added alert support for all key levels:
  • Cross above and cross below conditions for each level
  • Alerts are gated by Enable Alerts and each level group’s toggle
  • Refactored alert cross logic to fix Pine warning CW10002:
  • ta.crossover/ta.crossunder now computed in unconditional raw variables each bar
  • Toggle/na filters applied afterward for consistency
  • Preserved existing behavior for:
  • MA cloud, MA lines, and original MA/price-cross alert conditions.
Phát hành các Ghi chú

  • Hides YTC by default
  • Changes YTH/YTL colors and makes them solid by default
Phát hành các Ghi chú

  • Update default colors
Phát hành các Ghi chú

  • Updates default colors and fixes alert issues
Phát hành các Ghi chú

  • Fixes an issue YTH, YTL calculations

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.