OPEN-SOURCE SCRIPT

Key Levels

3 083
I couldn't find an indicator that plotted previous day and intraday key levels like I wanted.

This indicator plots key levels on the chart:
  • Current session high (HOD) and low (LOD)
  • Previous day high (PDH), low (PDL), and close (PDC)
  • Overnight high (ONH) and low (ONL) based on a defined overnight window

    At the start of a new session (day), the indicator resets its values and creates a new set of labels.
    These labels are positioned in a fixed horizontal column (offset from the current bar) and are updated each bar so that they remain vertically aligned with their corresponding level (with a small vertical offset).

    Inputs you can modify:
  • Futures Mode and session times for equities and futures.
  • Horizontal label offset (in bars) and vertical offset (price units) for label positioning.
  • Colors, line widths, and styles for each level (day high, day low, overnight high/low, previous day levels).

    Adjust these inputs to match your market hours and desired appearance.

    Zero background in coding, but worked with chatGPT to develop this, and it works for me. Would welcome any and all feedback.

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。