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

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità