PROTECTED SOURCE SCRIPT

IPDA Time

46
What the indicator does

IPDA Time [DSS] marks swing highs/lows that occur at specific “time windows” defined by a selectable time method. It’s designed as a context tool to help you visually study whether certain timestamp patterns tend to align with meaningful swing points on your market/instrument.

It does not generate trade signals and it does not predict direction. It simply annotates pivots that meet your chosen time filter.

Core concept (high level)

Swing detection
  • The script uses standard pivot logic (a swing length input) to identify confirmed swing highs and swing lows.
  • A pivot is only confirmed after the required number of bars have printed, meaning labels appear with the usual “pivot confirmation delay.”

Automatic mode by timeframe

The script automatically changes what it prints on the label depending on chart timeframe:
  • 4H and higher: prints a date-style label (swing context)
  • Below 4H: prints a time-style label (intraday context)

Time filtering
You can switch the time logic from 369 to Goldbach:
  • Only swings that meet the currently selected method are labeled.

Label pairing

Each swing gets up to two labels:
  • Time/Date label
  • Value label (either 3/6/9 or “GB/GBxx”)
  • The script uses a clean spacing method so the two labels stay evenly separated.

Lifecycle management
  • Labels are removed if price later invalidates the swing (optional).
  • A safety cap limits how many labels are kept, preventing label-limit issues on TradingView.

Time methods
  • 369 method
  • The “369” mode evaluates a simplified digit-reduction test on the relevant timestamp. If the reduced result matches the 3/6/9 family, that pivot is considered eligible and will be labeled.
    This is applied in:
  • Intraday context (time-based view)
  • Higher timeframe context (date-based view)

Goldbach method

The “Goldbach” mode computes a single derived number from the timestamp (based on your chosen formula option), then checks whether it belongs to a predefined allowed set. If it matches, the swing is eligible.

You can describe it as:
  • “A timestamp-derived value is computed from the session time”
  • “That value is validated against a fixed inclusion list”
  • “If valid, it’s marked as Goldbach time (GB) or GBxx when enabled”

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.