RealTest User Guide
RealTest User Guide

 

 

 

 

 

Category

Multi-Bar Functions

Description

Linear regression slope

Syntax

Slope(expr, {expr2,} count)

Parameters

expr - data series formula (Y values)

expr2 - optional second data series formula (X values -- a linear series from 1 to count is used if omitted)

count - lookback period

Notes

Calculates the slope of a linear regression of expr evaluated for the previous count bars.

See also LinReg and YInt.

Example

Trend: Slope(C, 20)

Positive slope indicates an upward trend over 20 bars.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC