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

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?


Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm