OPEN-SOURCE SCRIPT

Economic Calendar Events: FOMC, CPI, and more

Mis à jour
This script plots major events from the Economic Calendar that often correspond to major pivot points in various markets. It also includes built-in logic to retroactively adjust larger time intervals (i.e. greater than 1 hour) to be correctly aligned with the interval during which the event occurred.

Events are taken from the Economic Calendar and will be updated periodically at the following library:
EconomicCalendar


The above library can be used to conveniently access date-related data for major Meetings, Releases, and Announcements as integer arrays, which can be used in other indicators. Currently, it has support for the following events:

FOMC Meetings
The FOMC meets eight times a year to determine the course of monetary policy. The FOMC's decisions are based on a review of economic and financial developments and its assessment of the likely effects of these developments on the economic outlook.

FOMC Minutes
The FOMC minutes are released three weeks after each FOMC meeting. The minutes provide a detailed account of the FOMC's discussion of economic and financial developments and its assessment of the likely effects of these developments on the economic outlook.

Producer Price Index (PPI) Releases
The Producer Price Index (PPI) measures changes in the price level of goods and services sold by domestic producers. The PPI is a weighted average of prices of a basket of goods and services, such as transportation, food, and medical care. PPI is a leading indicator of CPI.

Consumer Price Index (CPI) Releases
The Consumer Price Index (CPI) measures changes in the price level of goods and services purchased by households. The CPI is a weighted average of prices of a basket of consumer goods and services, such as transportation, food, and medical care. CPI is one of the most widely used measures of inflation.

Consumer Sentiment Index (CSI) Releases
The University of Michigan's Consumer Sentiment Index (CSI) is a measure of consumer attitudes about the economy. The CSI is based on a monthly survey of U.S. households and reflects the consumers' assessment of present and future economic conditions. The CSI is a leading indicator of consumer spending, which accounts for about two-thirds of U.S. economic activity.

Consumer Confidence Index (CCI) Releases
The Consumer Confidence Index is a survey that measures how optimistic or pessimistic consumers are regarding their expected financial situation.

Non-Farm Payroll (NFP) Releases
The Non-Farm Payroll (NFP) is a measure of the change in the number of employed persons, excluding farm workers and government employees. The NFP is a leading indicator of consumer spending, which accounts for about two-thirds of U.S. economic activity.
Notes de version
  • Adjust colors in the legend to update when the events' colors are changed.
Notes de version
Fix issue where the incorrect time was being shown when viewed on the hourly chart.
Notes de version
Fixes issue where daily timeframe was off by an offset of 1.
Notes de version
Implemented a new getUnixTime function and kept the original function as an alternative mechanism for those interested in auditing dates. Performance-wise, the two are near-equivalent, but the newer implementation does a better job handling discrepancies between markets on a daily timeframe.
Notes de version
  • Use the latest data provider library version, which has additional CCI and PPI dates for 2023
  • Add an option for alternative date resolution to fix the issue whereby some charts (e.g., Forex) occasionally appear to be one day off on the daily timeframe
Notes de version
Update to include FOMC Meetings and FOMC Minutes for 2024.
CPIFOMCfomcmeetingfomcminutesFundamental AnalysisPivot points and levelssentiment

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


❤️ Patreon w/ Lorentzian 2.0: patreon.com/jdehorty

🎥 Lorentzian Classification Tutorial: youtu.be/AdINVvnJfX4

🤖 Discord: discord.com/invite/djXT5sAPfQ

⏩ LinkedIn: linkedin.com/in/justin-dehorty
Aussi sur:

Clause de non-responsabilité