OPEN-SOURCE SCRIPT
Telah dikemas kini MMA, Mid-Price Moving Averages (Open + Close Based MAs)

📝 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
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
Nota Keluaran
📝 Script DescriptionThis 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)
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.