OPEN-SOURCE SCRIPT
Alerts Pack — Regime / Squeeze / VWAP / Weather

One-liner
Clean, reusable alert rules for trend flips, quiet→expansion, VWAP crosses, and a 0–10 weather score—with a minimal bottom-center panel that explains what’s happening in plain English.
What it includes
Regime flips (30m & 1h Supertrend)
• 30m Flip Up/Down
• 1h Flip Up/Down
• Majority flip (30m + 1h vote)
Squeeze (Bollinger-band width percentile)
• Squeeze ON (entered quiet zone)
• Squeeze OFF (left quiet)
• Expansion ping (leaving quiet and width rising)
VWAP (session-independent rolling VWAPs)
• Cross ABOVE/BELOW Daily
• Cross ABOVE/BELOW Weekly
Panel hides Day/Week if not ready—no “n/a”.
Weather score (0–10)
• Bucket crossings: Rainy ≤2, >Storm Clearing (4), >Clearing Skies (6), >Sunny (8)
• Built from RSI(1h/4h), MACD(1h/4h) histogram sign, and price vs EMA.
Panel (overlay, bottom-center)
Shows a compact status readout:
Regime: Bull / Bear / Mixed (+ “Flip ↑/↓” tag on change)
Squeeze: Quiet (percentile vs threshold) or Normal, with Expansion: YES if popping
VWAP: Above/Below Daily & Weekly with % distances (only when available)
Weather: Bucket name + Score X/10
Inputs
Supertrend TFs (30m/1h), ATR length & multiplier
Squeeze: BB length, stdev, lookback, quiet threshold, expansion toggle
VWAP basis: HLC3 or Close
Weather: RSI length, EMA length, TFs for RSI/MACD (1h/4h by default)
Panel: show/hide, background transparency
How to use (alerts)
Add indicator → Create Alert.
In Condition, pick the rule (e.g., Regime: Majority Flip Up, Squeeze ON, VWAP: Cross ABOVE Daily, Weather: > Sunny).
Choose “Once per bar close” for stable MTF behavior.
Name it, set delivery, done.
Best practices
Use Majority flips for higher confidence; use the single-TF flips for early signals.
Combine Squeeze ON → Expansion ping with your entry tools (levels, orderflow, timing).
VWAP crosses pair well with trend context (regime + weather) for confirmation.
The panel is informational—alerts fire even if the panel is hidden.
Notes
Uses MTF series (30m/1h, 1h/4h). Values finalize on the higher-TF bar close; standard repaint characteristics apply until confirmation.
No chart clutter: plots are hidden; only the panel shows (optional).
Clean, reusable alert rules for trend flips, quiet→expansion, VWAP crosses, and a 0–10 weather score—with a minimal bottom-center panel that explains what’s happening in plain English.
What it includes
Regime flips (30m & 1h Supertrend)
• 30m Flip Up/Down
• 1h Flip Up/Down
• Majority flip (30m + 1h vote)
Squeeze (Bollinger-band width percentile)
• Squeeze ON (entered quiet zone)
• Squeeze OFF (left quiet)
• Expansion ping (leaving quiet and width rising)
VWAP (session-independent rolling VWAPs)
• Cross ABOVE/BELOW Daily
• Cross ABOVE/BELOW Weekly
Panel hides Day/Week if not ready—no “n/a”.
Weather score (0–10)
• Bucket crossings: Rainy ≤2, >Storm Clearing (4), >Clearing Skies (6), >Sunny (8)
• Built from RSI(1h/4h), MACD(1h/4h) histogram sign, and price vs EMA.
Panel (overlay, bottom-center)
Shows a compact status readout:
Regime: Bull / Bear / Mixed (+ “Flip ↑/↓” tag on change)
Squeeze: Quiet (percentile vs threshold) or Normal, with Expansion: YES if popping
VWAP: Above/Below Daily & Weekly with % distances (only when available)
Weather: Bucket name + Score X/10
Inputs
Supertrend TFs (30m/1h), ATR length & multiplier
Squeeze: BB length, stdev, lookback, quiet threshold, expansion toggle
VWAP basis: HLC3 or Close
Weather: RSI length, EMA length, TFs for RSI/MACD (1h/4h by default)
Panel: show/hide, background transparency
How to use (alerts)
Add indicator → Create Alert.
In Condition, pick the rule (e.g., Regime: Majority Flip Up, Squeeze ON, VWAP: Cross ABOVE Daily, Weather: > Sunny).
Choose “Once per bar close” for stable MTF behavior.
Name it, set delivery, done.
Best practices
Use Majority flips for higher confidence; use the single-TF flips for early signals.
Combine Squeeze ON → Expansion ping with your entry tools (levels, orderflow, timing).
VWAP crosses pair well with trend context (regime + weather) for confirmation.
The panel is informational—alerts fire even if the panel is hidden.
Notes
Uses MTF series (30m/1h, 1h/4h). Values finalize on the higher-TF bar close; standard repaint characteristics apply until confirmation.
No chart clutter: plots are hidden; only the panel shows (optional).
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน