PROTECTED SOURCE SCRIPT

Data Highs & Lows [TakingProphets]

84
DATA HIGHS AND LOWS

What it does

Data Highs & Lows visualizes the price level left by macro news events that release at 8:30 AM New York. It examines the 1-minute bars 8:29, 8:30, 8:31 and, if the 8:30 candle forms a valid swing low/high with a wick ≥ your threshold (points), it draws a horizontal level from that 8:30 price and labels it:

DATA.L when the 8:30 bar is a swing low

DATA.H when the 8:30 bar is a swing high

The line auto-extends until price’s wick touches/mitigates the level. On touch, you can either freeze the final segment and park the label beneath it or delete the visual immediately (toggle).

How it works

-Timezone: America/New_York.

-Detection runs on 1-minute data; visualization shows on minute charts up to 15m.

Swing rule:

-Swing-low if low(8:30) < low(8:29) and < low(8:31)

-Swing-high if high(8:30) > high(8:29) and > high(8:31)

-Wick rule: the relevant wick of the 8:30 candle must be ≥ threshold (points).

-One event/level per day; state resets daily.

Inputs & styling

Detection

-Wick Size Threshold (points).

Visualization

-Line Color, Line Style (Solid/Dashed/Dotted).

-Label Size (Tiny…Huge), Label Text Color.

-Label Vertical Offset (ticks) when parked.

-Line width is fixed at 1.

Behavior

Delete on Mitigation (remove line+label immediately on first touch) or keep the frozen level with a centered label.

Auto-cleanup after bars (optional).

Notes

-Designed to highlight levels specifically tied to 8:30 AM data releases (e.g., CPI, PPI, Jobless Claims, etc.).

-Works only if the symbol trades around that time; always consider session liquidity and instrument behavior.

-Labels: while active, they sit at the right end of the line; after mitigation they move to bottom-center with a small offset.

Disclaimer

This is an educational tool for chart annotation. It does not provide signals, guarantees, or financial advice. Always do your own analysis and manage risk appropriately.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.