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 автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?


Мои профили:

Отказ от ответственности