OPEN-SOURCE SCRIPT
Cập nhật EMA Ribbon [prof]

# EMA Ribbon [prof] —
## Overview
EMA Ribbon [prof] plots eight Exponential Moving Averages (EMAs) with staggered periods (default 24 down to 10) stacked on top of each other, forming a visual "ribbon" that reflects the current trend's direction and strength. When the eight lines are spread apart and neatly ordered, it signals a strong, clear trend; when the lines tangle and cross each other, it signals a choppy, range-bound market with no clear direction.
The indicator is designed to run directly on the price chart (overlay) and works on any market (stocks, forex, crypto, indices) and any timeframe.
## Key Features
- Eight EMAs with fully adjustable periods from the settings.
- Selectable price source (Close, High, Low, etc.) — defaults to High.
- "Drop first N candles" option to ignore a chosen number of the earliest candles before calculations start.
- "Offset" option to shift the ribbon left or right on the chart without affecting its underlying calculations.
- Automatic buy/sell signals (circles below/above the bar) triggered when price breaks through the entire ribbon to the upside or downside.
- Bar coloring (green/red) based on whether price is above or below the ribbon's midline, for quick at-a-glance trend reading.
- Full control over each line's color and thickness from the Style tab.
## How to Use It
- **Trend direction:** When price is above the ribbon and the lines are stacked with the shortest EMA on top, it supports a continuing uptrend; the mirror image supports a downtrend.
- **Trend strength:** The wider the gap between the lines, the stronger the momentum behind the move.
- **Dynamic support/resistance:** The ribbon itself can act as a dynamic support zone in an uptrend, or a dynamic resistance zone in a downtrend.
- **Signals:** The buy signal fires when price breaks above the highest point of the entire ribbon; the sell signal fires when price breaks below the lowest point. Treat these as additional confirmation, not standalone trade calls.
- It's best used alongside other tools (volume, support/resistance levels, momentum indicators) rather than relied on in isolation.
## Settings
| Setting | Description | Default |
|---|---|---|
| MA-1 to MA-8 period | Periods of the eight EMAs | 24, 22, 20, 18, 16, 14, 12, 10 |
| Source | Price source used for calculations | High |
| Drop first N candles | Number of leading candles excluded from calculations | 0 |
| Offset (Shift Ribbon) | Shifts the ribbon left/right on the chart | 8 |
| Show Buy/Sell Signals | Toggles the buy/sell signal markers | Enabled |
| Color Candles Above/Below Ribbon | Colors bars based on their position relative to the ribbon | Enabled |
## Disclaimer
This indicator is a technical analysis tool, not investment advice or a recommendation to buy or sell. Past performance does not guarantee future results. Users are solely responsible for their own trading decisions and should always apply independent risk and capital management before acting on any signal.
## Overview
EMA Ribbon [prof] plots eight Exponential Moving Averages (EMAs) with staggered periods (default 24 down to 10) stacked on top of each other, forming a visual "ribbon" that reflects the current trend's direction and strength. When the eight lines are spread apart and neatly ordered, it signals a strong, clear trend; when the lines tangle and cross each other, it signals a choppy, range-bound market with no clear direction.
The indicator is designed to run directly on the price chart (overlay) and works on any market (stocks, forex, crypto, indices) and any timeframe.
## Key Features
- Eight EMAs with fully adjustable periods from the settings.
- Selectable price source (Close, High, Low, etc.) — defaults to High.
- "Drop first N candles" option to ignore a chosen number of the earliest candles before calculations start.
- "Offset" option to shift the ribbon left or right on the chart without affecting its underlying calculations.
- Automatic buy/sell signals (circles below/above the bar) triggered when price breaks through the entire ribbon to the upside or downside.
- Bar coloring (green/red) based on whether price is above or below the ribbon's midline, for quick at-a-glance trend reading.
- Full control over each line's color and thickness from the Style tab.
## How to Use It
- **Trend direction:** When price is above the ribbon and the lines are stacked with the shortest EMA on top, it supports a continuing uptrend; the mirror image supports a downtrend.
- **Trend strength:** The wider the gap between the lines, the stronger the momentum behind the move.
- **Dynamic support/resistance:** The ribbon itself can act as a dynamic support zone in an uptrend, or a dynamic resistance zone in a downtrend.
- **Signals:** The buy signal fires when price breaks above the highest point of the entire ribbon; the sell signal fires when price breaks below the lowest point. Treat these as additional confirmation, not standalone trade calls.
- It's best used alongside other tools (volume, support/resistance levels, momentum indicators) rather than relied on in isolation.
## Settings
| Setting | Description | Default |
|---|---|---|
| MA-1 to MA-8 period | Periods of the eight EMAs | 24, 22, 20, 18, 16, 14, 12, 10 |
| Source | Price source used for calculations | High |
| Drop first N candles | Number of leading candles excluded from calculations | 0 |
| Offset (Shift Ribbon) | Shifts the ribbon left/right on the chart | 8 |
| Show Buy/Sell Signals | Toggles the buy/sell signal markers | Enabled |
| Color Candles Above/Below Ribbon | Colors bars based on their position relative to the ribbon | Enabled |
## Disclaimer
This indicator is a technical analysis tool, not investment advice or a recommendation to buy or sell. Past performance does not guarantee future results. Users are solely responsible for their own trading decisions and should always apply independent risk and capital management before acting on any signal.
Phát hành các Ghi chú
upPhát hành các Ghi chú
upPhát hành các Ghi chú
Liquidity LevelsPhát hành các Ghi chú
upPhát hành các Ghi chú
upMã 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.