PROTECTED SOURCE SCRIPT

KING_HPM_LPM_SPY

13
Name: KING_HPM_LPM_SPY

This indicator identifies and plots the high (HPM) and low (LPM) of the pre-market session for the SPY ticker (or any chart it's applied to), based on the New York timezone (04:00 - 09:30 AM).

Functionality:

Tracks the high and low during the premarket hours.

When the premarket ends (09:30 AM NY time), it draws horizontal lines at the premarket high and low levels.

It also adds labels:

"HPM" for the high

"LPM" for the low

These lines and labels are customizable (style, width, color).

It keeps the plotted lines/labels for a user-defined number of days (default = 2).

If the number of stored days exceeds the limit, it automatically deletes the oldest lines and labels to maintain only the most recent days visible.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.