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.
發行說明
Version 1.1發行說明
Version 1.2發行說明
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提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。