OPEN-SOURCE SCRIPT

Prior Day High/Low and Highest High/Lowest Low

Features:
Prior Day High and Low:
The script tracks and displays the previous trading day's high and low prices. These levels can serve as important areas of support or resistance, helping traders to make informed decisions about potential price reversals or breakouts.

Highest High and Lowest Low Over N Days:
This indicator also tracks and displays the highest high and lowest low over the last N days, where N is user-configurable. This allows traders to see broader trends in price action and identify key levels for potential trend changes.

User-Configurable Inputs:
  1. Show Prior Day High/Low: Toggle whether to display the prior day’s high and low levels.
  2. Days to Consider for Highest High/Lowest Low: Define the number of days over which the highest high and lowest low are calculated.
  3. Show Highest High/Lowest Low: Toggle whether to display the highest high and lowest low levels over the specified period.
  4. Low Source and High Source: Customize the data sources for the high and low values.
  5. Automatic Data Handling:
  6. The script automatically tracks the daily high and low prices, storing them in arrays, and calculates the highest and lowest prices over the user-specified number of days. When a new day begins, the prior day's data is saved, and the calculations are updated accordingly.


Visual Display:
The indicator uses distinct colors and plotting styles:

  1. Prior day’s high and low are plotted as blue circles.
  2. The highest high over N days is plotted as a red circle.
  3. The lowest low over N days is plotted as a green circle.
  4. This indicator helps traders stay informed about significant price levels, which are often used in trading strategies for breakouts, trend following, or reversals.
Bands and Channelsmultitimeframe

오픈 소스 스크립트

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

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


또한 다음에서도:

면책사항