OPEN-SOURCE SCRIPT
已更新 SMA Trend Flow

A clean and intuitive trend-following indicator designed to simplify market analysis using multiple Simple Moving Averages (SMAs).
Instead of displaying only moving averages, this indicator visualizes trend direction, trend strength, and potential entry timing in a simple and easy-to-read format.
Features
Displays 5, 20, 60, 100, and 200 SMAs.
Background highlights when a Perfect Order is established:
Bullish: 5 > 20 > 60 > 100
Bearish: 5 < 20 < 60 < 100
Dynamic fill between the 5 SMA and 20 SMA.
The fill becomes stronger as more SMAs align in the same direction, making trend strength easy to recognize at a glance.
Buy and sell arrows when the 5 SMA crosses the 20 SMA.
Alert support for both bullish and bearish crossovers.
Why this indicator?
The goal is to reduce chart clutter while providing the essential information needed for trend-following and swing trading.
With a single glance, traders can quickly identify:
Overall market trend
Trend strength
Short-term momentum
Potential entry opportunities
This indicator is designed for traders who prefer clean charts and objective trend analysis.
Instead of displaying only moving averages, this indicator visualizes trend direction, trend strength, and potential entry timing in a simple and easy-to-read format.
Features
Displays 5, 20, 60, 100, and 200 SMAs.
Background highlights when a Perfect Order is established:
Bullish: 5 > 20 > 60 > 100
Bearish: 5 < 20 < 60 < 100
Dynamic fill between the 5 SMA and 20 SMA.
The fill becomes stronger as more SMAs align in the same direction, making trend strength easy to recognize at a glance.
Buy and sell arrows when the 5 SMA crosses the 20 SMA.
Alert support for both bullish and bearish crossovers.
Why this indicator?
The goal is to reduce chart clutter while providing the essential information needed for trend-following and swing trading.
With a single glance, traders can quickly identify:
Overall market trend
Trend strength
Short-term momentum
Potential entry opportunities
This indicator is designed for traders who prefer clean charts and objective trend analysis.
版本注释
# SMA Perfect Order EntryA simple trend-following indicator designed to identify trend direction and potential entry timing using multiple Simple Moving Averages (SMAs).
This indicator combines Perfect Order analysis, short-term momentum visualization, and filtered moving average crossover signals.
## Features
- Displays 5, 20, 60, 100, and 200 Simple Moving Averages (SMAs).
- Highlights the background when a strong trend structure is formed:
Bullish Trend:
5 SMA > 20 SMA > 60 SMA > 100 SMA
Bearish Trend:
5 SMA < 20 SMA < 60 SMA < 100 SMA
- Fills the area between the 5 SMA and 20 SMA to visualize short-term momentum:
Green: 5 SMA above 20 SMA
Red: 5 SMA below 20 SMA
- Filtered entry signals:
Bullish Signal ▲
Appears when:
- 5 SMA crosses above 20 SMA
- Short-term trend structure is bullish (5 > 20 > 60)
Bearish Signal ▼
Appears when:
- 5 SMA crosses below 60 SMA
- Short-term trend structure is bearish (5 < 20 < 60)
- Alert support for both bullish and bearish signals.
## Purpose
The goal of this indicator is to reduce unnecessary crossover signals by combining moving average alignment with trend confirmation.
It is designed for swing traders and trend-following strategies, helping traders identify:
- Trend direction
- Momentum changes
- Potential entry opportunities
This indicator is intended as a trend analysis tool and should be used together with your own trading strategy.
版本注释
# SMA Perfect Order EntryA simple trend-following indicator designed to identify trend direction and potential entry timing using multiple Simple Moving Averages (SMAs).
This indicator combines Perfect Order analysis, short-term momentum visualization, and filtered moving average crossover signals.
## Features
- Displays 5, 20, 60, 100, and 200 Simple Moving Averages (SMAs).
- Highlights the background when a strong trend structure is formed:
Bullish Trend:
5 SMA > 20 SMA > 60 SMA > 100 SMA
Bearish Trend:
5 SMA < 20 SMA < 60 SMA < 100 SMA
- Fills the area between the 5 SMA and 20 SMA to visualize short-term momentum:
Green: 5 SMA above 20 SMA
Red: 5 SMA below 20 SMA
- Filtered entry signals:
Bullish Signal ▲
Appears when:
- 5 SMA crosses above 20 SMA
- Short-term trend structure is bullish (5 > 20 > 60)
Bearish Signal ▼
Appears when:
- 5 SMA crosses below 60 SMA
- Alert support for both bullish and bearish signals.
## Purpose
The goal of this indicator is to reduce unnecessary crossover signals by combining moving average alignment with trend confirmation.
It is designed for swing traders and trend-following strategies, helping traders identify:
- Trend direction
- Momentum changes
- Potential entry opportunities
This indicator is intended as a trend analysis tool and should be used together with your own trading strategy.
版本注释
**Update Notes*** Updated the bullish signal condition:
* An up arrow appears when the 5 SMA crosses above the 20 SMA while the short-term structure is bullish: **5 SMA > 20 SMA > 60 SMA**.
* Updated the bearish signal condition:
* A down arrow now appears when the 5 SMA crosses below the 60 SMA.
* The bearish signal no longer requires a Perfect Order condition, allowing earlier detection of a potential trend breakdown.
* Updated the alert condition to trigger when either the bullish entry signal or bearish breakdown signal appears.
* Revised the alert title and message to reflect the new asymmetric signal logic.
版本注释
**Update Notes*** Bullish signal: 5 SMA crosses above 20 SMA while **5 > 20 > 60**.
* Bearish signal: 5 SMA crosses below 20 SMA while both the 5 SMA and 20 SMA are pointing downward.
* Removed the previous candlestick and swing-high filters.
* Updated alerts to reflect the revised signal conditions.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。