---
title: "Pirce High-Low Nearness Ratio"
method: POST
path: "/assets/indicators/price-high-low-nearness-ratio"
tags: ["Assets / Indicators"]
---

# Pirce High-Low Nearness Ratio

`POST /assets/indicators/price-high-low-nearness-ratio`

## Request

- Base URL: `https://api.portfoliooptimizer.io/v1`
- URL: `https://api.portfoliooptimizer.io/v1/assets/indicators/price-high-low-nearness-ratio`
- Auth: API key in header `X-API-Key`

Compute the price high-low nearness ratio of an asset.

References
* [GEORGE, T.J. and HWANG, C.-Y. (2004), The 52-Week High and Momentum Investing. The Journal of Finance, 59: 2145-2176](https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1540-6261.2004.00695.x)

## Request body

- union
  - object
    - `assets` object[], required
      - `assetReturns` number[], required: assetReturns[t] is the logarithmic return of the asset at the time t
      - `assetPriceHighLowNearnessRatioSkipPeriod` integer: The number of the most recent periods excluded from the asset nearness ratio computation; must be < assetPriceHighLowNearnessRatioFormationPeriod
      - `assetPriceHighLowNearnessRatioFormationPeriod` integer, required: The look back period over which to compute the asset nearness ratio
  - object
    - `assets` object[], required
      - `assetPrices` object[], required: assetPrices[t] contains price information for the asset at the date t
        - `date` string, required: The date corresponding to the date t in format YYYY-MM-DD; all dates must be distinct
        - `close` number, required: The close price of the asset at the date t
      - `assetPriceHighLowNearnessRatioSkipPeriod` integer: The number of the most recent periods excluded from the asset nearness ratio computation; must be < assetPriceHighLowNearnessRatioFormationPeriod
      - `assetPriceHighLowNearnessRatioFormationPeriod` integer, required: The look back period over which to compute the asset nearness ratio

## Response `200`

OK

- object
  - `assets` object[], required
    - `assetPriceHighNearnessRatio` number, required: The asset nearness ratio using the highest past asset price over the computation period as a reference point
    - `assetPriceLowNearnessRatio` number, required: The asset nearness ratio using the lowest past asset price over the computation period as a reference point

## Changes

- **2026-08-27** `f68caed89b1c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/portfoliooptimizer/apis/portfolio-optimizer/changes/assets/indicators/price-high-low-nearness-ratio/post.md)

---

[API](https://skmtc.dev/portfoliooptimizer/apis/portfolio-optimizer.md) - [All operations](https://skmtc.dev/portfoliooptimizer/apis/portfolio-optimizer/llms.txt) - [OpenAPI document](https://skmtc.dev/portfoliooptimizer/apis/portfolio-optimizer/revisions/9d075aa717bf?raw)
