OPEN-SOURCE SCRIPT
GEMINI Advanced SMA with Trend & Alerts

Description:
This indicator is a professional Trend & Signal analysis tool designed to help traders identify market direction, entries, and momentum strength at a glance. It combines a customizable dual Moving Average system with an advanced real-time Information Dashboard.
The script is built to keep charts clean while providing maximum data through the on-screen panel.
📈 Key Features
1. Dual Moving Average System
Fast MA (Signal Line): Acts as the primary trigger for entries.
Slow MA (Trend Baseline): Filters the overall market direction.
Visual Cloud: The area between the two MAs is filled with color (Green/Red) to visualize the trend strength and potential support/resistance zones.
Flexibility: You can choose between SMA, EMA, HMA, WMA, or RMA for both lines independently.
2. Professional Data Dashboard A customizable table positioned on your chart provides real-time analytics:
Price Action: Immediate Bullish/Bearish status.
MA Status: Shows if the Fast and Slow MAs are currently Rising or Falling.
Exact Levels: Displays the precise price values of the MAs.
Spread Analysis: Monitors the gap between the Fast and Slow MA ("Expanding" vs "Squeezing") to help identify momentum acceleration or exhaustion.
3. Signals & Alerts
BUY Signal: Generated when the Price crosses OVER the Fast MA.
SELL Signal: Generated when the Price crosses UNDER the Fast MA.
Alerts: Fully compatible with TradingView alerts for automation.
4. Multi-Timeframe (MTF) Support You can calculate the Moving Averages based on a higher timeframe (e.g., viewing 4-hour MAs while trading on a 15-minute chart) to stay aligned with the macro trend.
🛠 How to Use
Trend Identification: Look at the "Cloud" color. Green indicates an uptrend context; Red indicates a downtrend context.
Entry Points: Use the "BUY" and "SELL" labels.
Pro Tip: Take BUY signals only when the Cloud is Green (trading with the trend).
Pro Tip: Take SELL signals only when the Cloud is Red.
Momentum Check: Use the Dashboard to see if the Spread is "EXPANDING" (strong momentum) or "SQUEEZING" (potential consolidation or reversal).
⚙️ Settings
Fast/Slow Length & Type: Fully customizable periods and MA types.
MTF: Enable/Disable higher timeframe calculations.
Dashboard: You can toggle the table visibility, change its size (Tiny, Small, Normal, Large), and move it to any corner of the screen.
Disclaimer: This tool is for informational purposes only and does not constitute financial advice.
This indicator is a professional Trend & Signal analysis tool designed to help traders identify market direction, entries, and momentum strength at a glance. It combines a customizable dual Moving Average system with an advanced real-time Information Dashboard.
The script is built to keep charts clean while providing maximum data through the on-screen panel.
📈 Key Features
1. Dual Moving Average System
Fast MA (Signal Line): Acts as the primary trigger for entries.
Slow MA (Trend Baseline): Filters the overall market direction.
Visual Cloud: The area between the two MAs is filled with color (Green/Red) to visualize the trend strength and potential support/resistance zones.
Flexibility: You can choose between SMA, EMA, HMA, WMA, or RMA for both lines independently.
2. Professional Data Dashboard A customizable table positioned on your chart provides real-time analytics:
Price Action: Immediate Bullish/Bearish status.
MA Status: Shows if the Fast and Slow MAs are currently Rising or Falling.
Exact Levels: Displays the precise price values of the MAs.
Spread Analysis: Monitors the gap between the Fast and Slow MA ("Expanding" vs "Squeezing") to help identify momentum acceleration or exhaustion.
3. Signals & Alerts
BUY Signal: Generated when the Price crosses OVER the Fast MA.
SELL Signal: Generated when the Price crosses UNDER the Fast MA.
Alerts: Fully compatible with TradingView alerts for automation.
4. Multi-Timeframe (MTF) Support You can calculate the Moving Averages based on a higher timeframe (e.g., viewing 4-hour MAs while trading on a 15-minute chart) to stay aligned with the macro trend.
🛠 How to Use
Trend Identification: Look at the "Cloud" color. Green indicates an uptrend context; Red indicates a downtrend context.
Entry Points: Use the "BUY" and "SELL" labels.
Pro Tip: Take BUY signals only when the Cloud is Green (trading with the trend).
Pro Tip: Take SELL signals only when the Cloud is Red.
Momentum Check: Use the Dashboard to see if the Spread is "EXPANDING" (strong momentum) or "SQUEEZING" (potential consolidation or reversal).
⚙️ Settings
Fast/Slow Length & Type: Fully customizable periods and MA types.
MTF: Enable/Disable higher timeframe calculations.
Dashboard: You can toggle the table visibility, change its size (Tiny, Small, Normal, Large), and move it to any corner of the screen.
Disclaimer: This tool is for informational purposes only and does not constitute financial advice.
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.