---
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)

## Request body

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

## Response `200`

OK

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

---

[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/versions/479fd4ac44aa/schema)
