OPEN-SOURCE SCRIPT
已更新 Daily 50‑ & 200‑SMA Ceiling Radar — Enhanced

Description:
This custom TradingView indicator, developed by Trader Malik and licensed under Trades Per Minute, is a powerful visual tool for identifying how price behaves relative to major daily moving averages — the 50-SMA and 200-SMA. It helps traders quickly understand key technical dynamics such as trend alignment, MA proximity, and short-term momentum sentiment — all displayed on a clean, minimal overlay with visual alerts and an adjustable data table.
FEATURES
1. Daily 50 & 200 Simple Moving Averages (SMA):**
- Displayed directly on the chart using distinct blue and orange lines.
- These serve as primary trend filters and support/resistance zones.
2. Price Highlighting:
- A red background flashes momentarily when the price crosses either the 50-SMA or 200-SMA.
- A green background fills the chart when price is above both MAs (bullish zone).
- A red background persists if price is below both MAs (bearish zone).
3. MA Gap Analysis Table:
- 50-SMA Row**: Shows % gap between 50-SMA and 200-SMA.
- 200-SMA Row**: Shows % gap between 200-SMA and 50-SMA.
- Sentiment Row**: Displays short-term trend bias based on the slope of the past 7 daily closes — Bullish, Neutral, or Bearish.
USER SETTINGS
Table Location: Choose between **Top Right** or **Bottom Right** of the chart.
Table Size: Select **Small**, **Medium**, or **Large** to suit screen preferences and layout aesthetics.
This script is **intellectual property of Trades Per Minute** and distributed by **Trader Malik** for use under licensing terms. Redistribution or repurposing without authorization is strictly prohibited.
This custom TradingView indicator, developed by Trader Malik and licensed under Trades Per Minute, is a powerful visual tool for identifying how price behaves relative to major daily moving averages — the 50-SMA and 200-SMA. It helps traders quickly understand key technical dynamics such as trend alignment, MA proximity, and short-term momentum sentiment — all displayed on a clean, minimal overlay with visual alerts and an adjustable data table.
FEATURES
1. Daily 50 & 200 Simple Moving Averages (SMA):**
- Displayed directly on the chart using distinct blue and orange lines.
- These serve as primary trend filters and support/resistance zones.
2. Price Highlighting:
- A red background flashes momentarily when the price crosses either the 50-SMA or 200-SMA.
- A green background fills the chart when price is above both MAs (bullish zone).
- A red background persists if price is below both MAs (bearish zone).
3. MA Gap Analysis Table:
- 50-SMA Row**: Shows % gap between 50-SMA and 200-SMA.
- 200-SMA Row**: Shows % gap between 200-SMA and 50-SMA.
- Sentiment Row**: Displays short-term trend bias based on the slope of the past 7 daily closes — Bullish, Neutral, or Bearish.
USER SETTINGS
Table Location: Choose between **Top Right** or **Bottom Right** of the chart.
Table Size: Select **Small**, **Medium**, or **Large** to suit screen preferences and layout aesthetics.
This script is **intellectual property of Trades Per Minute** and distributed by **Trader Malik** for use under licensing terms. Redistribution or repurposing without authorization is strictly prohibited.
版本注释
Daily 50 & 200-SMA Ceiling Radar — by Trader Malik (Trades Per Minute)This indicator is a smart visual tool for spotting how price interacts with the 50-day and 200-day simple moving averages (SMA). It's perfect for intraday traders, swing traders, and even long-term investors who want a clean and actionable way to monitor trend strength, momentum sentiment, and key MA crossovers — even during pre- and post-market hours.
What It Does:
1. Plots the Daily 50 & 200 SMAs
Shows the 50-SMA in blue and 200-SMA in orange.
These lines help you quickly spot whether the market is trending, ranging, or reversing.
2. Crossover Highlights
Whenever the current price crosses either the 50-SMA or the 200-SMA, that bar gets a red background flash, so you won’t miss key technical events.
The highlight is only on the bar that crosses, so it doesn't clutter the chart.
3. Real-Time Distance Table
A table in the corner shows:
% gap between current price and 50-SMA
% gap between current price and 200-SMA
Daily sentiment: a quick analysis of the slope of the past 7 days — showing if the recent trend is Bullish, Neutral, or Bearish
4. Adaptive Background
The chart background turns:
Green when price is above both MAs (bullish zone)
Red when price is below both MAs (bearish zone)
Clear when price is mixed (in between)
User Settings:
Table Location: You can choose where the table appears — top right or bottom right corner.
Table Size: Adjust the table text size to small, medium, or large, depending on your screen and preference.
Why Use This Indicator?
It helps you visually track when price is fighting with or moving away from key trend averages.
Gives real-time % insights so you can see how “stretched” price is from key levels.
Helps you stay grounded with a daily momentum check — no guessing if you're in a trending or neutral market.
Designed to work in real-time, including extended market sessions.
Made by: Trader Malik
Property of: Trades Per Minute
Redistribution or copying of this code is not allowed without permission.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。