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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。