OPEN-SOURCE SCRIPT
已更新

MMA, Mid-Price Moving Averages (Open + Close Based MAs)

76
📝 Script Description

This script introduces a custom set of moving averages based on the mid-price, calculated as the average of the open and close prices:

Mid Price = (Open + Close) / 2

Instead of traditional close-based MAs, this approach reflects the average sentiment throughout the trading session, offering a smoother and more realistic view of price action.

🔍 Key Features:

✅ Gap-aware smoothing
Captures opening gaps, offering a better representation of intraday shifts.

✅ Reduced noise
Less vulnerable to sharp closing moves or one-off spikes, making it easier to identify true trend breaks or supports.

✅ Closer to actual flow
Reflects a more natural midline of price movement, ideal for traders who prioritize clean, sustained trends.

✅ Better support/resistance alignment
Especially useful for identifying stable uptrends and minimizing false breakout signals.

📐 Included Moving Averages:

MA 5

MA 10

MA 20

MA 60

MA 120

MA 200

(All based on mid-price, not close)

🎯 Recommended For:

Traders seeking smoother and more reliable trendlines

Those who want a more realistic depiction of support and resistance

Ideal for filtering out noisy movements while focusing on clean, straight-moving charts

發行說明
📝 Script Description

This indicator displays short-term moving averages (5, 10, and 20 days) based on the mid-price, calculated as the average of the open and close prices:

Mid Price = (Open + Close) / 2

Rather than using the traditional close-based moving averages, this script offers a more balanced and realistic view of price movement by incorporating both the session’s open and close.

🔍 Key Features:

✅ Short-Term Focused: Uses only the 5, 10, and 20-day moving averages, which are ideal for identifying near-term trends, momentum, and price structure.

✅ Gap-Sensitive: By including the opening price, this indicator captures price gaps that traditional moving averages might ignore.

✅ Reduced Noise: Smoother than close-based MAs, making it easier to assess trend continuity and filter out false breakouts.

✅ Stronger Support/Resistance Alignment: Especially useful for identifying clean, consistent uptrends where price respects short-term moving averages.

📐 Included Moving Averages:

MA 5 (Mid Price)

MA 10 (Mid Price)

MA 20 (Mid Price)

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。