---
title: "Trend Clarity"
method: POST
path: "/assets/indicators/trend/clarity"
tags: ["Assets / Indicators"]
---

# Trend Clarity

`POST /assets/indicators/trend/clarity`

Compute the trend clarity of an asset.

References
* [Zhi Da, Umit G. Gurun, Mitch Warachka, Frog in the Pan: Continuous Information and Momentum, The Review of Financial Studies, Volume 27, Issue 7, July 2014, Pages 2171–2218](https://academic.oup.com/rfs/article-abstract/27/7/2171/1578455)
* [Schmerling, Chad, Trading the Chart: Trend Slope, Trend Strength, and Retail Extrapolation (July 22, 2026)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6731259)

## Request body

- union
  - object
    - `assets` object[], required
      - `assetReturns` number[], required — assetReturns[t] is the logarithmic return of the asset at the time t
      - `assetTrendClaritySkipPeriod` integer — The number of the most recent periods excluded from the asset trend clarity computation; must be < assetTrendClarityFormationPeriod
      - `assetTrendClarityFormationPeriod` integer, required — The look back period over which to compute the asset trend clarity
      - `assetTrendClarityEstimationMethod` 'ordinaryLeastSquares' | 'robustLeastSquares' | 'chatterjeeCorrelationCoefficient' — The trend clarity estimation method to use
      - `assetTrendClarityScale` 'linear' | 'logarithmic' — The asset price scale to use for estimating the trend clarity
  - 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
      - `assetTrendClaritySkipPeriod` integer — The number of the most recent periods excluded from the asset trend clarity computation; must be < assetTrendClarityFormationPeriod
      - `assetTrendClarityFormationPeriod` integer, required — The look back period over which to compute the asset trend clarity
      - `assetTrendClarityEstimationMethod` 'ordinaryLeastSquares' | 'robustLeastSquares' | 'chatterjeeCorrelationCoefficient' — The trend clarity estimation method to use
      - `assetTrendClarityScale` 'linear' | 'logarithmic' — The asset price scale to use for estimating the trend clarity

## Response `200`

OK

- object
  - `assets` object[], required
    - `assetTrendClarity` number, required — The asset trend clarity

---

[API](https://skmtc.net/portfoliooptimizer/apis/portfolio-optimizer.md) · [All operations](https://skmtc.net/portfoliooptimizer/apis/portfolio-optimizer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portfoliooptimizer/portfolio-optimizer/revisions/6f06b5c1e6e5/schema)
