OPEN-SOURCE SCRIPT

IDLP – Intraday Daily Levels Pro [FXSMARTLAB]

171
🔥 IDLP – Intraday Daily Levels Pro

IDLP – Intraday Daily Levels Pro is a precision toolkit for intraday traders who rely on objective daily structure instead of repainting indicators and noisy signals.


Every level plotted by IDLP is derived from one simple rule:

Today’s trading decisions must be based on completed market data only.

That means:
✅ No use of the current day’s unfinished data for levels
✅ No lookahead
✅ No hidden repaint behavior

IDLP reconstructs the previous trading day from the intraday chart and then projects that structure forward onto the current session, giving you a stable, institutional-style intraday map.


🧱 1. Previous Daily Levels (Core Structure)

IDLP extracts and displays the full previous daily structure, which you can toggle on/off individually via the inputs:

  1. Previous Daily High (PDH)
  2. Previous Daily Low (PDL)
  3. Previous Daily Open
  4. Previous Daily Close,
  5. Previous Daily Mid (50% of the range)
  6. Previous Daily Q1 (25% of the range)
  7. Previous Daily Q3 (75% of the range)


All of these come from the day that just closed and are then locked for the entire current session.

What these levels tell you:

  1. PDH / PDL – true extremes of yesterday’s price action (liquidity zones, breakout/reversal points).
  2. Previous Daily Open / Close – how the market positioned itself between session start and end
  3. Mid (50%) – equilibrium level of the previous day’s auction.
  4. Q1 / Q3 (25% / 75%) internal structure of the previous day’s range, dividing it into four equal zones and helping you see if price is trading in the lower, middle, or upper quarter of yesterday’s range.


All these levels are non-repaint: once the day is completed, they are fixed and never change when you scroll, replay, or backtest.


🎯 2. Previous Day Pivot System (P, S1, S2, R1, R2)

IDLP includes a classic floor-trader pivot grid, but critically:

It is calculated only from the previous day’s high, low, and close.

So for the current session, the following are fixed:

Pivot P – central reference level of the previous day.

Support 1 (S1) and Support 2 (S2)

Resistance 1 (R1) and Resistance 2 (R2)

These levels are widely used by institutional desks and algos to structure:

mean-reversion plays, breakout zones, intraday targets, and risk placement.

Everything in this section is non-repaint because it only uses the previous day’s fully closed OHLC.


📏 3. 1-Day ADR Bands Around Previous Daily Open

Instead of a multi-day ADR, IDLP uses a pure 1-Day ADR logic:

ADR = Range of the previous day

ADR = PDH − PDL

From that, IDLP builds two clean bands centered around the previous daily Open:

ADR Upper Band = Previous Day Open + (ADR × Multiplier)

ADR Lower Band = Previous Day Open − (ADR × Multiplier)

The multiplier is user-controlled in the inputs:

ADR Multiplier (default: 0.8)

This lets you choose how “tight” or “wide” you want the ADR envelope to be around the previous day’s open.

Typical use cases:

Identify realistic intraday extension targets, Spot exhaustion moves beyond ADR bands, Frame reversals after reaching volatility extremes, Align trades with or against volatility expansion

Again, since ADR is calculated only from the completed previous day, these bands are totally non-repaint during the current session.


🔒 4. True Non-Repaint Architecture

The internal logic of IDLP is built to guarantee non-repaint behavior:

It reconstructs each day using time("D") and tracks:

dayOpen, dayHigh, dayLow, dayClose for the current day

prevDayOpen, prevDayHigh, prevDayLow, prevDayClose for the previous day

At the moment a new day starts:

The “current day” gets “frozen” into prevDay*

These prevDay* values then drive: Previous Daily Levels, Pivots, ADR.

During the current day:

All these “previous day” values stay fixed, no matter what happens.

They do not move in real time, they do not shift in replay.

This means:

What you see in the past is exactly what you would have seen live.

No fake backtests.

No illusion of perfection from repainting behavior.


🎯 5. Designed For Intraday Traders

IDLP – Intraday Daily Levels Pro is made for:
  1. - Day traders and scalpers
  2. - Index and FX traders
  3. - Prop firm challenge trading
  4. - Traders using ICT/SMC-style levels, liquidity, and range logic
  5. - Anyone who wants a clean, institutional-style daily framework without noise


You get:
  1. Previous Day OHLC
  2. Mid / Q1 / Q3 of the previous range
  3. Previous-Day Pivots (P, S1, S2, R1, R2)
  4. 1-Day ADR Bands around Previous Day Open


All calculated only from closed data, updated once per day, and then locked.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.