OPEN-SOURCE SCRIPT

Key Levels

837
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. اقرأ المزيد في شروط الاستخدام.