OPEN-SOURCE SCRIPT
Cập nhật 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.
Phát hành các Ghi chú
Version 1.1Phát hành các Ghi chú
Version 1.2Phát hành các Ghi chú
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.