OPEN-SOURCE SCRIPT
Telah dikemas kini

X OHL

442
designed to plot significant levels—closed higher timeframe High, Low, Open, and an Equilibrium (EQ) level and current Open—on the current chart based on user-defined higher timeframes (HTFs). It helps traders visualize HTF price levels on lower timeframes for confluence, context, or decision-making.

Key Functional Components:
Configurable Inputs:
  • Four Timeframes: Customizable (default: 1H, 4H, D, W).


Visibility Toggles for:
  • Previous High (pHigh)
  • Previous Low (pLow)
  • EQ (midpoint between high and low)
  • Current Open
  • Previous Open


How It Works:
For each selected timeframe:
  • retrieves OHL Data
  • Previous high/low (high[1], low[1])
  • Current and previous open
  • EQ is calculated as midpoint: (high + low) / 2


Draws Horizontal Lines:
  • Lines are drawn from the candle where the HTF bar opens and extended until timeframe switch. Lines extends a few bars beyond current to assist in visualization

Labels:
  • On the most recent bar, each level is labeled with a description (pHigh 1H, EQ 6H, etc.).
  • Labels are customizable (size, color, background).


Anchoring:
Lines and labels are redrawn on the start of each new HTF bar to ensure accuracy and relevance.

Nota Keluaran
clean up

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.