PROTECTED SOURCE SCRIPT
ที่อัปเดต: 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)
เอกสารเผยแพร่
Added 23 SMA.Disabled some default SMAs and EMAs.
เอกสารเผยแพร่
Corrected label of 23 EMA to 23 SMA.เอกสารเผยแพร่
Bug FixesAdd 10 SMA
เอกสารเผยแพร่
Added 100 Hull Moving Averageเอกสารเผยแพร่
- Cleaner settings
- Added 290 SMA
เอกสารเผยแพร่
- Fixed 290MA
เอกสารเผยแพร่
Added 425 SMAเอกสารเผยแพร่
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.
เอกสารเผยแพร่
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.
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน