> For the complete documentation index, see [llms.txt](https://chartschool.stockcharts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/distance-from-highs.md).

# Distance From Highs

## What Is the Distance From Highs Indicator? <a href="#what_is_the_distance_from_highs_indicator" id="what_is_the_distance_from_highs_indicator"></a>

The Distance From Highs indicator shows how far a security's price is from a recent significant high. Because previous highs often act as natural resistance lines, knowing whether or not price is close to a previous high during an uptrend can help chartists to identify potential changes in trend and set entry/exit points.

<figure><img src="/files/9ZvSYdTASJMccFKoL89c" alt=""><figcaption></figcaption></figure>

## Calculating the Distance From Highs

The formula for this indicator is simple:

```
(Close - High) / High * 100
```

The High value is subtracted from the Close in order to determine the difference between the two values. The difference is divided by the High value and multiplied by 100 in order to convert the raw value to a percentage.

{% hint style="success" %}
**Cool Tip:** Expressing the value as a percentage makes it easier to compare Distance From Highs values over time or even between different securities.
{% endhint %}

The formula can be calculated using the 52-week, 9-month, 6-month, or 3-month high. In addition, the indicator can be calculated with either the intraday high or the closing high. Choose the type and length of high that best meet your technical analysis needs.

## Interpreting the Distance From Highs

Recent highs often act as resistance during an uptrend, so it can be useful to see how far away the current price is from the high. If it is close and moving closer to the high, the stock may be heading for a pullback or a change in trend. Chartists should assess momentum and other technicals to determine whether a pullback or reversal is more likely.

If you're a trader who likes to open a long position when price has broken above a significant high, then knowing how far price is from that high can also be useful for timing your trade entries.

<figure><img src="/files/tbxvlMjVQBd09zfU1obY" alt=""><figcaption><p>The Distance From Highs indicator shows this stock is very close to its 52-week high.</p></figcaption></figure>

In the chart above, Allstate (ALL) is in an uptrend. Although the trend doesn't look very smooth on the chart, the stock has made new 52-week highs quite frequently during this six-month period, touching the zero line of the Distance From Highs indicator at least seven times. The Distance From Highs value for the latest bar on the chart is -0.79%, meaning it is less than 1% away from reaching another 52-week high.&#x20;

{% hint style="success" %}
**Cool Tip:** Another way to look at this same information is with the [Distance To Highs indicator](/table-of-contents/technical-indicators-and-overlays/technical-indicators/distance-to-highs.md), which measures the percent the price would need to increase to reach a previous high.
{% endhint %}

## The Bottom Line

Plotting the historical Distance From Highs values on the chart allows chartists to see at a glance not only how close or far the current price is from the high, but also whether or not it's moving in the right direction over time. This valuable information can help traders to identify potential pullbacks and reversals, as well as time trade entries and exits.

As with all indicators, traders should use the Distance From Highs indicator in conjunction with other indicators and analysis techniques.

## Charting with the Distance From Highs <a href="#charting_distance_from_highs" id="charting_distance_from_highs"></a>

The Distance From Highs indicator can be added to SharpCharts and ACP Charts.

### Using with SharpCharts

Distance From Highs is available on SharpCharts in the “Indicators” section. The indicator can be positioned above, below, or behind the security's price plot. Once the indicator is chosen from the dropdown list, a Distance From Highs indicator is added to the chart with the default settings. The first parameter determines the length of the high: 52W (52 weeks, the default), 9M (9 months), 6M (six months), or 3M (three months). The second parameter indicates whether the closing high or the intraday high is used. To configure the indicator for intraday highs, replace the "CLOSE" with "INTRADAY".

[Click here for a live version of this chart.](https://stockcharts.com/sc3/ui/?s=MRK\&a=2298559457\&p=D\&b=5\&g=0\&id=p09016581577)

<figure><img src="/files/EVxqAwoKSyc5g7x5jT0W" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/lzoqXTWjwGzPkD0tadX5" alt=""><figcaption><p>SharpCharts settings for Distance From Highs</p></figcaption></figure>

{% hint style="info" %}
**Learn More:** For more details on the parameters used to configure Distance From Highs indicators, please see our [SharpCharts Parameter Reference](https://help.stockcharts.com/charts-and-tools/sharpcharts/sharpcharts-workbench/editing-sharpcharts/sharpcharts-parameter-reference#distance_from_highs) in the Support Center.
{% endhint %}

### Using with StockChartsACP

The Distance From Highs indicator can be added from the Chart Settings panel for your StockChartsACP chart. The indicator can be positioned above, below, or behind the security's price plot.

<figure><img src="/files/JGWfoDtQ3GDB3nwUl5ag" alt=""><figcaption></figcaption></figure>

[Click here for a live version of this chart.](https://schrts.co/EhjcYFUg)

By default, the indicator uses the 52-week closing high, but the length and type of high can be adjusted to meet your technical analysis needs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/distance-from-highs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
