OPEN-SOURCE SCRIPT

Prior Day/Week Levels Indicator

Key Features:

Prior Day and Week Levels:
The indicator retrieves and displays the high and low prices from the previous trading day and week.
It uses request.security to fetch these levels, ensuring accuracy regardless of the current time frame being viewed.
Visual Representation:
Lines:
The prior day and week high/low levels are represented by horizontal lines that extend back to the bar where the level was formed. This makes it easy to identify key support and resistance zones.
Labels:
Labels are added to the chart to indicate the prior day high (PDH), prior day low (PDL), prior week high (PWH), and prior week low (PWL) for quick reference.
Premium and Discount Zones:
The indicator identifies whether the current price is above the prior day/week high (premium) or below the prior day/week low (discount).
Shading is applied to visually represent these zones:
Premium Zone: When the price is above the prior high, shaded in a transparent red color.
Discount Zone: When the price is below the prior low, shaded in a transparent green color.
Dynamic Status Table:
A status table is displayed in the top right corner of the chart, indicating the current trading status (Premium, Discount, or Neutral) for both the day and week levels. This allows traders to quickly assess market conditions at a glance.
Customizable Inputs:
Users can toggle the visibility of prior day and week levels through input options, allowing for a personalized trading experience.
Usage: This indicator is useful for day traders and swing traders looking to identify potential support and resistance levels based on historical price action. It helps traders make informed decisions by understanding market context and evaluating current price relative to prior day and week levels.
Candlestick analysisChart patternsCyclesictictconceptsinnercircletraderPO3premiumdiscountSMT

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항