PROTECTED SOURCE SCRIPT
Aggiornato Moving Average(MA) Collection

A simple collection of Simple Moving Averages and Exponential Moving Averages. 4 moving averages enabled by default from a total of 10.
Turn MAs on/off and edit the line style/colour via MA Collection settings.
Default Moving Averages and Default Line Styles
Other Optional Moving Averages and Default Line Styles
Turn MAs on/off and edit the line style/colour via MA Collection settings.
Default Moving Averages and Default Line Styles
- 21 EMA (Thin, Purple)
- 50 SMA (Medium, Yellow)
- 100 EMA (Medium, Dove Gray)
- 200 SMA (Thick, Radical Red)
Other Optional Moving Averages and Default Line Styles
- 5 SMA (Thin, Gray)
- 8 EMA (Thin, Strkemaster)
- 13 EMA (Thin, Stiletto)
- 40 EMA (Medium, Rio Grande)
- 100 SMA (Medium, Silver)
- 314 EMA (Thick, Olive)
Note di rilascio
Added 23 SMA.Disabled some default SMAs and EMAs.
Note di rilascio
Corrected label of 23 EMA to 23 SMA.Note di rilascio
Bug FixesAdd 10 SMA
Note di rilascio
Added 100 Hull Moving AverageNote di rilascio
- Cleaner settings
- Added 290 SMA
Note di rilascio
- Fixed 290MA
Note di rilascio
Added 425 SMANote di rilascio
Moving Average(MA) CollectionThis indicator is an updated Pine Script v6 version of the original Moving Average(MA) Collection, designed to make working with multiple moving averages simple, clean, and fully synchronized.
Each moving average now uses a single checkbox in the Inputs tab. When an MA is enabled, both the moving average line and its label are displayed. When it is disabled, both are removed. This ensures the chart always stays clean with no leftover labels or hidden lines.
Default settings match the original indicator, with the 21 EMA, 50 SMA, 100 EMA, and 200 SMA enabled on load.
Features
• Supports SMA, EMA, WMA, and Hull MA
• One toggle per MA controls both line and label
• Labels appear at the latest bar and update in real time
• Clean chart with no orphaned labels
• Pine Script v6 compatible
• Works on all markets and timeframes
Included Moving Averages
5 SMA
8 EMA
10 SMA
13 EMA
21 EMA
23 SMA
40 EMA
50 SMA
50 WMA
80 EMA
100 EMA
100 Hull MA
110 EMA
100 SMA
200 SMA
290 SMA
314 EMA
425 EMA
How to use
Open Settings then Inputs and tick the moving averages you want to display. Each selected MA will automatically show its label next to the line. Unticking an MA removes both the line and the label instantly.
This indicator is ideal for traders who use multiple moving averages and want clear visual identification without clutter.
Note di rilascio
Release Notes – Optimised UpdateThis update improves performance and stability while keeping the behaviour and layout unchanged.
What’s improved
• Optimised label handling to reduce unnecessary updates
• Labels are now created once and only repositioned on new bars
• Reduced per bar computation for better performance on lower timeframes
• Cleaner and more maintainable Pine Script v6 code
Behaviour
• One checkbox per moving average controls both the MA line and its label
• Turning an MA on shows the line and label
• Turning an MA off removes both instantly
• Default enabled MAs remain 21 EMA, 50 SMA, 100 EMA, and 200 SMA
No visual or functional changes are required from users. Existing settings continue to work as expected.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.