OPEN-SOURCE SCRIPT

SMA Ribbon [A]

SMA Ribbon with Adjustable MA200
20, 50, 100, and 200-period Simple Moving Averages (SMAs) for trend analysis.
The SMA200 dynamically changes color based on its direction—green when rising and red when falling. Additionally, you can lock the SMA200 to the daily timeframe, allowing it to display the 200-day moving average on lower timeframes, such as 4-hour or 1-hour charts.

Features:

  1. Dynamic SMA200 Color: Automatically adjusts to show upward (green) or downward (red) trends.
  2. Daily SMA200 Option: Enables the SMA200 to represent the 200-day moving average on intraday charts for long-term trend insights.
  3. Smart Adaptation: The daily SMA200 setting is automatically disabled on daily or higher timeframes, ensuring accurate period calculations.



How to Use:

  • Use this script to identify key support/resistance levels and overall market trends.
  • Adjust the "Daily MA for MA200" option in the settings to toggle between timeframe-specific and daily-locked SMA200.


This script is ideal for traders seeking a clean and customizable tool for long-term and short-term trend analysis.
ma100ma200ma_ribbonmoving_averageMoving AveragesSimple Moving Average (SMA)sma

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian