OPEN-SOURCE SCRIPT
Trinity Flexible Multi-TF MA Alignment Dashboard

**User Guide: Flexible Multi-TF MA Alignment Dashboard**
### How to Add the Indicator
1. Open TradingView chart (any symbol/timeframe)
2. Click **Indicators** → Search for "**Flexible Multi-TF MA Alignment Dashboard**" (or "Flex MA Dashboard")
3. Add it to your chart
### Core Functionality
This dashboard lets you monitor **up to 5 independent Moving Averages** at the same time, each with:
- Its own **Timeframe** (5min, 15min, 1H, 4H, Daily, etc.)
- Its own **Length** (e.g., 9, 20, 34, 50, 200)
- Its own **Type** (EMA or SMA)
The indicator shows:
- Whether price is **Above** (Bullish) or **Below** (Bearish) each MA
- **Overall alignment signal** (Strong Buy / Strong Sell / No Clear Alignment)
- The actual MA lines plotted on your chart (optional)
- Candle coloring based on overall alignment (optional)
### Settings Breakdown
#### MA 1 to MA 5 (Each has its own group)
- **Enable MA X**: Turn individual rows on/off
- **MA X Timeframe**: Choose from:
- `Chart` → Uses whatever timeframe your chart is on
- `5`, `15`, `30`, `60` (1H), `240` (4H), `D` (Daily), `W`, `M`
- **MA X Type**: EMA or SMA
- **MA X Length**: Any number (default 20)
**Tip**: Common setup for scalping:
- MA1: 5min + 9 EMA
- MA2: 15min + 20 EMA
- MA3: 1H + 20 EMA
- MA4: 4H + 50 EMA
- MA5: Daily + 200 EMA
### How to Read the Indicator
**Table Rows (MA1 to MA5)**:
- Shows the exact configuration (e.g., "MA3 (60 EMA20)")
- **Green** = Price is above that MA → Bullish bias on that timeframe
- **Red** = Price is below that MA → Bearish bias
- **Gray** = Row disabled
**Overall Signal (Bottom Row)**:
- **STRONG BUY** (Green) → All active MAs are aligned bullish
- **STRONG SELL** (Red) → All active MAs are aligned bearish
- **No Clear Alignment** (Yellow) → Mixed signals → Stay out or be cautious
**Visuals on Chart**:
- Colored MA lines (match the row colors)
- Candles colored green/red based on overall alignment (toggleable)
### Trading Usage Examples
**Scalping / Short-term Bias**:
- Use tighter MAs on lower timeframes (9 or 20 EMA)
- Look for **STRONG BUY/SELL** on 5min chart when higher timeframes (1H + 4H) are also aligned
**Trend-Following Day Trading**:
- Set MA1 = 15min 20 EMA
- MA2 = 1H 20 EMA
- MA3 = 4H 50 EMA
- MA4 = Daily 200 EMA
- Only take longs when you get **STRONG BUY**
**Your Original Request Style**:
- Set 5 rows to 20 EMA (or 9 EMA)
- Different timeframes: 5min, 15min, 1H, 4H, Daily
- Enter **puts** only when you get **STRONG SELL** (all MAs aligned bearish)
### Pro Tips
- Start with 3–4 MAs active to avoid over-filtering
- Use "Chart" timeframe on one row so you always see the current chart’s MA
- Turn off **Show MA Lines** if the chart gets too cluttered
- Turn off **Color Candles** if you prefer clean price action
- The more timeframes that align, the higher the probability (especially when Daily + 4H agree)
### How to Add the Indicator
1. Open TradingView chart (any symbol/timeframe)
2. Click **Indicators** → Search for "**Flexible Multi-TF MA Alignment Dashboard**" (or "Flex MA Dashboard")
3. Add it to your chart
### Core Functionality
This dashboard lets you monitor **up to 5 independent Moving Averages** at the same time, each with:
- Its own **Timeframe** (5min, 15min, 1H, 4H, Daily, etc.)
- Its own **Length** (e.g., 9, 20, 34, 50, 200)
- Its own **Type** (EMA or SMA)
The indicator shows:
- Whether price is **Above** (Bullish) or **Below** (Bearish) each MA
- **Overall alignment signal** (Strong Buy / Strong Sell / No Clear Alignment)
- The actual MA lines plotted on your chart (optional)
- Candle coloring based on overall alignment (optional)
### Settings Breakdown
#### MA 1 to MA 5 (Each has its own group)
- **Enable MA X**: Turn individual rows on/off
- **MA X Timeframe**: Choose from:
- `Chart` → Uses whatever timeframe your chart is on
- `5`, `15`, `30`, `60` (1H), `240` (4H), `D` (Daily), `W`, `M`
- **MA X Type**: EMA or SMA
- **MA X Length**: Any number (default 20)
**Tip**: Common setup for scalping:
- MA1: 5min + 9 EMA
- MA2: 15min + 20 EMA
- MA3: 1H + 20 EMA
- MA4: 4H + 50 EMA
- MA5: Daily + 200 EMA
### How to Read the Indicator
**Table Rows (MA1 to MA5)**:
- Shows the exact configuration (e.g., "MA3 (60 EMA20)")
- **Green** = Price is above that MA → Bullish bias on that timeframe
- **Red** = Price is below that MA → Bearish bias
- **Gray** = Row disabled
**Overall Signal (Bottom Row)**:
- **STRONG BUY** (Green) → All active MAs are aligned bullish
- **STRONG SELL** (Red) → All active MAs are aligned bearish
- **No Clear Alignment** (Yellow) → Mixed signals → Stay out or be cautious
**Visuals on Chart**:
- Colored MA lines (match the row colors)
- Candles colored green/red based on overall alignment (toggleable)
### Trading Usage Examples
**Scalping / Short-term Bias**:
- Use tighter MAs on lower timeframes (9 or 20 EMA)
- Look for **STRONG BUY/SELL** on 5min chart when higher timeframes (1H + 4H) are also aligned
**Trend-Following Day Trading**:
- Set MA1 = 15min 20 EMA
- MA2 = 1H 20 EMA
- MA3 = 4H 50 EMA
- MA4 = Daily 200 EMA
- Only take longs when you get **STRONG BUY**
**Your Original Request Style**:
- Set 5 rows to 20 EMA (or 9 EMA)
- Different timeframes: 5min, 15min, 1H, 4H, Daily
- Enter **puts** only when you get **STRONG SELL** (all MAs aligned bearish)
### Pro Tips
- Start with 3–4 MAs active to avoid over-filtering
- Use "Chart" timeframe on one row so you always see the current chart’s MA
- Turn off **Show MA Lines** if the chart gets too cluttered
- Turn off **Color Candles** if you prefer clean price action
- The more timeframes that align, the higher the probability (especially when Daily + 4H agree)
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.