Key Levels

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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.