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

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


Aussi sur:

Clause de non-responsabilité