OPEN-SOURCE SCRIPT

NY Macro Status

162
Description:

A clean, chart-free way to track ICT macro time windows during the New York session. Instead of drawing boxes or shading across price, the script places a small status panel in the top-right corner that tells you what you actually need to know: whether a macro is running right now, which one, when it ends, and when the next one starts.

How it works

The panel reads the live clock in New York time and compares it against your list of macro windows.

When a macro is active, the panel turns green and shows the macro's name, its end time, and how many minutes remain.
When no macro is active, it shows the name and start time of the next macro and a countdown to it.
The current New York time is displayed on the bottom row (optional).

The panel updates every tick regardless of chart timeframe, so it works on 1-second, 1-minute, or 5-minute charts.

Macro windows

Eight fully editable slots. Each has an on/off toggle, a name, a start time, and an end time. Times are entered in plain 12-hour format — type 9:50 AM and 10:10 AM, no session strings or 24-hour math. If you omit AM/PM, hours before 8 are treated as PM so 1:10 – 1:40 reads correctly.

Defaults are the commonly referenced ICT New York macros: 8:50–9:10, 9:50–10:10, 10:50–11:10, 11:50–12:10 (lunch), 12:50–1:10, 1:10–1:40, 3:15–3:45, and an optional 3:50–4:10. Change, rename, or disable any of them.

Vertical lines (optional, off by default)

If you want the windows marked on the chart, turn on vertical lines. Start and end lines have independent colors; style (solid/dashed/dotted), width, and how many days of history to keep are all adjustable. Weekends are skipped.

Display options

Text size (small to huge), active color, idle color, text color, border color. Both the "next macro" row and the current-time row can be hidden for a minimal panel.

Notes

Macro times are user-defined; the defaults are a starting point, not a recommendation.
The script draws nothing on price unless vertical lines are enabled.
No repainting — it reads wall-clock time, not bar data.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.