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

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité