OPEN-SOURCE SCRIPT

Highest High, Lowest Low, Midpoint for Selected Days [kiyarash]

Updated
Highest High, Lowest Low, and Midpoint for Selected Days Indicator
This custom TradingView indicator allows you to visualize the highest high, lowest low, and the midpoint (average of the highest high and lowest low) over a custom-defined period. You can choose a starting date and specify how many days ahead you want to track the highest and lowest values. This is useful for identifying key levels in a trend and potential support or resistance zones.

How to Use:
Set the Starting Date:
In the settings, input the starting date from which you want to begin tracking the price range. This will be the reference point for your analysis.

Choose the Number of Days to Track:
Specify how many days you want to analyze from the selected starting date. For example, if you want to see the highest high and lowest low over the next 3 days, enter "3" in the settings.

Visualizing the Levels:
The indicator will automatically calculate the highest price and the lowest price over the selected period and draw three lines:

Red Line: Represents the Highest High within the selected period.
Green Line: Represents the Lowest Low within the selected period.
Blue Line: Represents the Midpoint, which is the average of the Highest High and Lowest Low.
Interpretation:

Highest High is a key resistance level, indicating the highest price reached within the specified period.
Lowest Low is a key support level, showing the lowest price during the same period.
Midpoint provides a reference for the average price, often acting as a neutral level between support and resistance.
This tool can help traders to quickly assess potential market ranges, identify breakout or breakdown points, and make informed decisions based on recent price action.


How to Apply:
Add the indicator to your chart.
Adjust the settings to choose your desired starting date and the number of days you want to analyze.
Observe the drawn lines for the Highest High, Lowest Low, and Midpoint levels, and use them to assist in your trading decisions.
Release Notes
fix some bogs
Candlestick analysisChart patternsCycleshighlowindicatormidpointindicatorTechnical Analysistradingview

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer