OPEN-SOURCE SCRIPT

US Presidents 1789–1916

53
Description:
This indicator displays all U.S. presidential elections from 1789 to 1916 on your chart.

Features:

Vertical lines at the date of each presidential election.

Line color by party:

Red = Republican

Blue = Democrat

Gray = Other/None

Labels showing the name of each president.

Historical flag style: All presidents before 1900 are considered historical, providing visual distinction.

Fully overlayed on the price chart for timeline context.

Customizable: Label position (above/below bar) and line width.

Use case: Great for studying historical market behavior around elections or for general reference of U.S. presidents during the early history of the country.

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。