OPEN-SOURCE SCRIPT

SHK 3 MA EMA WMA | VWAP | TRIANGLE CROSS

621
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SHK 3 MA EMA WMA | VWAP | ▲▼ CROSS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

A clean and powerful multi-purpose trend indicator combining
3 fully customisable Moving Averages with crossover signals
and an anchored VWAP — all in one overlay.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MOVING AVERAGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• 3 independent Moving Averages — MA1, MA2, MA3
• Each MA is individually selectable as EMA / SMA / WMA
• Each MA has its own length input
• Default lengths: MA1 = 9 | MA2 = 21 | MA3 = 50
• Color, opacity, thickness and line style controlled
directly from the chart legend (click the line name)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CROSSOVER SIGNALS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Two sets of cross signals with triangle labels:

▲ MA1 × MA2 — Bullish cross (triangle below bar)
Label shows actual lengths e.g. "9×21"

▼ MA1 × MA2 — Bearish cross (triangle above bar)
Label shows reversed lengths e.g. "21×9"

▲ MA2 × MA3 — Bullish cross (triangle below bar)
Label shows actual lengths e.g. "21×50"

▼ MA2 × MA3 — Bearish cross (triangle above bar)
Label shows reversed lengths e.g. "50×21"

Triangle colors match their respective MA line colors.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VWAP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Volume Weighted Average Price (VWAP)
• Selectable anchor period:
Session | Week | Month | Quarter | Year
• Toggle on/off from settings
• Color, opacity, thickness and line style
controlled from chart legend

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4 built-in alert conditions:
• MA1 Crossed Above MA2 ▲ (Bullish)
• MA1 Crossed Below MA2 ▼ (Bearish)
• MA2 Crossed Above MA3 ▲ (Bullish)
• MA2 Crossed Below MA3 ▼ (Bearish)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Add indicator to chart
2. Set MA types and lengths in Settings
3. Click any line name in chart legend to
adjust color, opacity, thickness and style
4. Use VWAP as dynamic support/resistance
5. Set alerts from the Alerts menu

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is for educational and
informational purposes only. It does NOT
constitute financial advice, investment
advice, or a recommendation to buy or sell
any financial instrument.

Past performance of any indicator or strategy
does not guarantee future results. Trading
involves significant risk of loss and is not
suitable for all investors. Always do your own
research and consult a qualified financial
advisor before making any trading decisions.

The author accepts no responsibility for any
losses incurred from the use of this indicator.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
© SHK — All rights reserved
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน