OPEN-SOURCE SCRIPT

US Presidential Elections (Names & Dates)

US Presidential Elections (Names & Dates)

Description:
This indicator marks key dates in US presidential history, highlighting both election days and inauguration dates. It's designed to provide historical context to your charts, allowing you to see how major political events align with market movements.

Key Features:
• Displays US presidential elections from 1936 to 2052
• Shows inauguration dates for each president
• Customizable colors and styles for both election and inauguration markers
• Toggle visibility of election and inauguration labels separately
• Adapts to different timeframes (daily, weekly, monthly)
• Includes president names for historical context

The indicator uses yellow labels for election days and blue labels for inauguration dates. Election labels show the year and "Election", while inauguration labels display the name of the incoming president.

Customization options include:
• Colors for election and inauguration labels and text
• Line widths for both types of events
• Label placement styles

This tool is perfect for traders and analysts who want to correlate political events with market trends over long periods. It provides a unique perspective on how presidential cycles might influence financial markets.

Note: Future elections (2024 onwards) are marked with a placeholder (✅) as the presidents are not yet known.

Use this indicator to:
• Identify potential market patterns around election cycles
• Analyze historical market reactions to specific presidencies
• Add political context to your long-term chart analysis

Enhance your chart analysis with this comprehensive view of US presidential history!
Cycles

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?


Juga pada:

Penafian