OPEN-SOURCE SCRIPT

High/Low Day + RSI

398
High/Low Day + RSI

High/Low Day + RSI combines current and previous trading day extremes with a compact RSI display directly on the price chart. It provides a single view of the daily price range and momentum without requiring a separate oscillator pane.

FEATURES

• Current Day High and Low: Green and red horizontal lines track the highest and lowest prices reached during the current trading day. These levels update as the daily range expands.

• Previous Day Levels: PHD (Previous High Day) and PLD (Previous Low Day) display the previous trading day’s high and low. These levels remain fixed throughout the current day.

• On-Chart RSI: A vertical gauge appears to the right of the latest candle, showing the current RSI value and a colored diamond marker.

• Customizable Display: Show or hide the current day levels, previous day levels, and RSI independently. Choose solid, dashed, or dotted horizontal lines, customize previous day level colors, and adjust the RSI period and reference levels.

HOW THE RSI DISPLAY WORKS

RSI is calculated from closing prices on the chart’s selected timeframe, using a default period of 14.

The gauge maps the RSI scale onto the current day’s price range: RSI 0 corresponds to the daily low, and RSI 100 corresponds to the daily high. This mapping is only a visual placement method; it does not change the RSI calculation or represent a price target.

The default reference levels are 80, 50, and 20.

With the default settings, the marker colors are:

• Purple: RSI at or above 80.
• Red: RSI at or above 70 and below 80.
• Blue: RSI above 30 and below 70.
• Green: RSI above 20 and at or below 30.
• Orange: RSI at or below 20.

The outer color thresholds follow the configurable upper and lower levels. The additional 70 and 30 thresholds are fixed in the code.

HOW TO USE

1. Add the indicator to an intraday chart.
2. Use High Day and Low Day to follow the developing daily range.
3. Use PHD and PLD as reference levels when observing how price interacts with the previous trading day’s extremes.
4. Read the RSI gauge to assess momentum alongside those price levels. The middle reference defaults to 50, while the upper and lower references highlight elevated and depressed RSI readings.
5. Adjust visibility, line styles, colors, and RSI settings to suit your chart layout. Leave space to the right of the latest candle so the gauge remains visible.

CALCULATION AND BEHAVIOR

Daily levels are calculated from the bars available on the chart and reset when the script detects a new daily period. Day boundaries follow the symbol’s daily periods, rather than a custom session defined by this indicator. Chart session settings and available history can therefore affect the displayed range.

The current day’s high, low, and RSI can change while the market is active. Previous day levels are carried forward from the completed daily range tracked by the script.

The indicator is designed primarily for intraday charts. It displays the latest daily levels and current RSI gauge rather than preserving a historical set of daily lines.

This is a visual analysis indicator. It does not generate automated buy or sell signals, execute trades, include a backtesting strategy, or define alert conditions. Extreme RSI readings alone do not confirm a reversal.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.