OPEN-SOURCE SCRIPT
Aggiornato 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
Note di rilascio
📝 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)
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.