OPEN-SOURCE SCRIPT
ที่อัปเดต: US Midterm Elections

US Midterm Elections is a macro event indicator that highlights historical and future U.S. midterm election dates directly on the chart.
Useful for analyzing correlations between political cycles and market behavior across equities, crypto, indices, bonds, and macro assets.
Features:
• Historical and future midterm election markers
• Highlighted upcoming election
• Custom labels and styling
• Clean macro cycle visualization
Built for long-term market cycle and sentiment analysis.
Useful for analyzing correlations between political cycles and market behavior across equities, crypto, indices, bonds, and macro assets.
Features:
• Historical and future midterm election markers
• Highlighted upcoming election
• Custom labels and styling
• Clean macro cycle visualization
Built for long-term market cycle and sentiment analysis.
Release Note
Version 1.1Release Note
Version 1.2Release Note
Version 2.0Major update to the US Midterm Elections indicator.
New features added:
• Automatic detection of historical and future U.S. Midterm Elections
• Dynamic highlighting of the next upcoming election
• Fully customizable vertical election markers and labels
• Future election projections with adjustable number of cycles
• NEW: Full-height macro cycle zones
• 1 year BEFORE midterms (N-1)
• 1 year AFTER midterms (N+1)
• Independent ON/OFF toggles for pre-election and post-election zones
• Custom zone colors and transparency controls
• Improved label positioning and date formatting
• Enhanced macro cycle visualization for stocks, crypto, indices and global markets
This update transforms the indicator from a simple election marker into a broader macro-political cycle analysis tool.
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน