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

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明