Skip to content
All library documents

Plotting Spreadsheet-Imported Economic Calendar Events on TradingView

Article TradingView scripts

Summary

This indicator turns manually prepared economic-event schedules into vertical chart markers. Users paste a semicolon-separated string containing a timezone and event timestamps, with each date and time expressed as year, month, day, hour, minute, and second. The script parses and sorts those timestamps, then draws lines for selected categories such as central bank meetings, purchasing manager surveys, retail sales, and inflation releases. Category names, visibility, line colors, widths, and a legend table are configurable.

The script adjusts timestamps for certain chart intervals to reduce apparent line offsets and limits plotted events to the most recent 100 per category, within TradingView’s overall line limit. Its usefulness depends on preparing accurate source data externally and keeping the pasted schedule current. It does not retrieve calendar data automatically, explain how events affect markets, or provide a trading signal; it is a visualization aid for traders who want event timing displayed alongside price history.

Key ideas

  • The indicator accepts event dates and times as a timezone-prefixed, semicolon-separated text schedule.
  • It parses and sorts timestamps before plotting vertical lines on the chart.
  • Users can show or hide event categories and customize their names and line appearance.
  • The script caps displayed history per category and adjusts timestamps for some chart timeframes.
  • Event data must be collected and formatted outside the indicator, so accuracy and freshness depend on the user.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.