> 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/gopalakrishnan-range-index.md).

# Gopalakrishnan Range Index

Some investment assets are more volatile than others. Before trading or investing in an asset, it helps to know if it'll take some time before reaching your profit target or if it will be a shorter-term trade. The Gopalakrishnan Range Index (or GAPO) determines the range of price moves for different assets and identifies which investments are more volatile and which tend to move in slow and consistent trends.

## Calculating the Gopalakrishnan Range Index

The indicator takes the log of the difference between the highest high and lowest low of a specific period and divides it by the log of the chosen period. The formula is as follows:

$$
GAPO = \[Log (Highest\nobreakspace highₙ - lowest\nobreakspace lowₙ)]/Log(n)
$$

## Charting the Gopalakrishnan Range Index

Say you're trying to decide whether to protect your portfolio by investing in the Financial Select Sector SPDR ETF (XLF), Utilities Select Sector SPDR ETF (XLU), and iShares 1–3 Year Treasury Bond ETF (SHY). However, the stock market still seems to favor mega tech stocks. Wouldn't investing in a high-flying stock like Nvidia (NVDA) make more sense?

In StockChartsACP, under **Chart Settings**, add the **Gopalakrishnan Range Index** from the **Standard Indicators** list.

The chart below shows the indicator in the chart of SHY. Note that GAPO is at -0.25 and over the last six months, the highest value was just slightly above zero.

<figure><img src="https://436553459-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FERtrZrZOhufFzk6ZQO4B%2Fuploads%2FRMaTJw8B7VRTkL8r073m%2FGAPO-2.png?alt=media&amp;token=f20cbcd7-2709-4407-b850-a0062c79a8b3" alt="Chart of SHY with Gopalakrishnan Range Index using StockCharts.com"><figcaption><p>The Gopalakrishnan Range Index applied to iShares 1–3 year Treasury Bond ETF (SHY).</p></figcaption></figure>

If you're looking to take advantage of a market where mega tech stocks are moving higher quickly and you decided to invest in SHY, you should be prepared to wait for a very long time before making an acceptable investment return.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/gopalakrishnan-range-index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
