OPEN-SOURCE SCRIPT
News Straddle

News Straddle
Plot straddle boxes around scheduled news releases (CPI, NFP, FOMC, etc.) with configurable offset, take-profit, and dead-zone levels.
Features
Setup
Best used on 1–5 min charts for NQ, ES, or any instrument sensitive to macro news.
Plot straddle boxes around scheduled news releases (CPI, NFP, FOMC, etc.) with configurable offset, take-profit, and dead-zone levels.
Features
- Paste any list of event dates — works for any recurring news release
- Live mode: boxes appear and track price in real-time before the release, updating with each candle
- Historical mode: boxes anchor to the release candle so you can backtest visually
- Built-in alerts fire before the release so you never miss an event
- All levels (offset, TP, SL/dead zone) and timing are fully configurable
Setup
- Paste your event dates (e.g. "Feb 13, 2026") one per line
- Set the release hour/minute in New York time
- Adjust offset, TP, and SL to match your strategy
- Add an alert to get notified before each release
Best used on 1–5 min charts for NQ, ES, or any instrument sensitive to macro news.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。