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

# Trend Slope

`POST /assets/indicators/trend/slope`

Compute the trend slope of an asset.

References
* [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
      - `assetTrendSlopeSkipPeriod` integer — The number of the most recent periods excluded from the asset trend slope computation; must be < assetTrendSlopeFormationPeriod
      - `assetTrendSlopeFormationPeriod` integer, required — The look back period over which to compute the asset trend slope
      - `assetTrendSlopeEstimationMethod` 'ordinaryLeastSquares' | 'robustLeastSquares' | 'chatterjeeCorrelationCoefficient' — The trend slope estimation method to use
      - `assetTrendSlopeScale` 'linear' | 'logarithmic' — The asset price scale to use for estimating the trend slope
  - 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
      - `assetTrendSlopeSkipPeriod` integer — The number of the most recent periods excluded from the asset trend slope computation; must be < assetTrendSlopeFormationPeriod
      - `assetTrendSlopeFormationPeriod` integer, required — The look back period over which to compute the asset trend slope
      - `assetTrendSlopeEstimationMethod` 'ordinaryLeastSquares' | 'robustLeastSquares' | 'chatterjeeCorrelationCoefficient' — The trend slope estimation method to use
      - `assetTrendSlopeScale` 'linear' | 'logarithmic' — The asset price scale to use for estimating the trend slope

## Response `200`

OK

- object
  - `assets` object[], required
    - `assetTrendSlope` number, required — The asset trend slope

---

[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/dee9caba1913/schema)
